Skip to content

Commit

Permalink
[#3009] Mark activities as read on loading dashboard page
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Nov 6, 2012
1 parent 7202c92 commit a91b625
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ckan/controllers/user.py
Expand Up @@ -500,6 +500,11 @@ def dashboard(self, id=None):
'user': c.user or c.author, 'for_view': True}
data_dict = {'id': id, 'user_obj': c.userobj}
self._setup_template_variables(context, data_dict)

# Mark the user's new activities as read whenever they view their
# dashboard page.
get_action('dashboard_mark_activities_as_read')(context, {})

return render('user/dashboard.html')

def follow(self, id):
Expand Down

0 comments on commit a91b625

Please sign in to comment.