mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
List the "Watching First Post" tags on preferences
This commit is contained in:
@@ -84,6 +84,7 @@ class UserSerializer < BasicUserSerializer
|
||||
private_attributes :locale,
|
||||
:muted_category_ids,
|
||||
:watched_tags,
|
||||
:watching_first_post_tags,
|
||||
:tracked_tags,
|
||||
:muted_tags,
|
||||
:tracked_category_ids,
|
||||
@@ -258,6 +259,10 @@ class UserSerializer < BasicUserSerializer
|
||||
TagUser.lookup(object, :tracking).joins(:tag).pluck('tags.name')
|
||||
end
|
||||
|
||||
def watching_first_post_tags
|
||||
TagUser.lookup(object, :watching_first_post).joins(:tag).pluck('tags.name')
|
||||
end
|
||||
|
||||
def watched_tags
|
||||
TagUser.lookup(object, :watching).joins(:tag).pluck('tags.name')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user