mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 10:24:39 +08:00
UX: special message when the user have enabled mailing_list_mode
This commit is contained in:
@ -32,7 +32,8 @@ class CurrentUserSerializer < BasicUserSerializer
|
||||
:post_queue_new_count,
|
||||
:show_queued_posts,
|
||||
:read_faq,
|
||||
:automatically_unpin_topics
|
||||
:automatically_unpin_topics,
|
||||
:mailing_list_mode
|
||||
|
||||
def include_site_flagged_posts_count?
|
||||
object.staff?
|
||||
@ -161,4 +162,8 @@ class CurrentUserSerializer < BasicUserSerializer
|
||||
object.staff? && (NewPostManager.queue_enabled? || QueuedPost.new_count > 0)
|
||||
end
|
||||
|
||||
def mailing_list_mode
|
||||
object.user_option.mailing_list_mode
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user