FEATURE: Add user preference for title counter mode (#7364)

This commit is contained in:
David Taylor
2019-04-12 00:02:18 +01:00
committed by Sam
parent c0c236f36e
commit dc703adad7
12 changed files with 67 additions and 9 deletions

View File

@ -43,7 +43,8 @@ class CurrentUserSerializer < BasicUserSerializer
:hide_profile_and_presence,
:groups,
:second_factor_enabled,
:ignored_users
:ignored_users,
:title_count_mode
def groups
object.visible_groups.pluck(:id, :name).map { |id, name| { id: id, name: name.downcase } }
@ -89,6 +90,10 @@ class CurrentUserSerializer < BasicUserSerializer
object.user_option.dynamic_favicon
end
def title_count_mode
object.user_option.title_count_mode
end
def automatically_unpin_topics
object.user_option.automatically_unpin_topics
end