mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:25:24 +08:00
FEATURE: Show FAQ at top of the hamburger until the user reads it
This commit is contained in:
@ -30,12 +30,17 @@ class CurrentUserSerializer < BasicUserSerializer
|
||||
:dismissed_banner_key,
|
||||
:is_anonymous,
|
||||
:post_queue_new_count,
|
||||
:show_queued_posts
|
||||
:show_queued_posts,
|
||||
:read_faq
|
||||
|
||||
def include_site_flagged_posts_count?
|
||||
object.staff?
|
||||
end
|
||||
|
||||
def read_faq
|
||||
object.user_stat.read_faq?
|
||||
end
|
||||
|
||||
def topic_count
|
||||
object.topics.count
|
||||
end
|
||||
|
Reference in New Issue
Block a user