work in progress, live unread / new counters

This commit is contained in:
Sam
2013-05-24 20:58:26 +10:00
parent 52eeecd460
commit 33ff87bf44
6 changed files with 31 additions and 4 deletions

View File

@ -14,6 +14,8 @@ class CurrentUserSerializer < BasicUserSerializer
:external_links_in_new_tab,
:trust_level
has_many :user_tracking_states, serializer: UserTrackingStateSerializer, embed: :objects
# we probably want to move this into site, but that json is cached so hanging it off current user seems okish
def include_site_flagged_posts_count?