mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: added UI for tracking categories
This commit is contained in:
@@ -62,6 +62,7 @@ class UserSerializer < BasicUserSerializer
|
||||
:gravatar_template,
|
||||
:uploaded_avatar_template,
|
||||
:muted_category_ids,
|
||||
:tracked_category_ids,
|
||||
:watched_category_ids
|
||||
|
||||
|
||||
@@ -112,6 +113,10 @@ class UserSerializer < BasicUserSerializer
|
||||
CategoryUser.lookup(object, :muted).pluck(:category_id)
|
||||
end
|
||||
|
||||
def tracked_category_ids
|
||||
CategoryUser.lookup(object, :tracking).pluck(:category_id)
|
||||
end
|
||||
|
||||
def watched_category_ids
|
||||
CategoryUser.lookup(object, :watching).pluck(:category_id)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user