aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/notifications/views.py
diff options
context:
space:
mode:
authorJessica Tallon <tsyesika@tsyesika.se>2015-10-20 13:02:15 +0000
committerJessica Tallon <tsyesika@tsyesika.se>2015-10-20 13:02:15 +0000
commit03bb1b7907d2d0fa522bf4705e4891494839da09 (patch)
treef60658eb937886dfd1cc349cab605c13a02942e5 /mediagoblin/notifications/views.py
parentfd703bb4d0665958d853b89f6069eefd8a8c8113 (diff)
parent64a456a4e50b03e4fa2b33ceb208e88d2e02fce7 (diff)
downloadmediagoblin-03bb1b7907d2d0fa522bf4705e4891494839da09.tar.lz
mediagoblin-03bb1b7907d2d0fa522bf4705e4891494839da09.tar.xz
mediagoblin-03bb1b7907d2d0fa522bf4705e4891494839da09.zip
Merge branch 'comments'
Diffstat (limited to 'mediagoblin/notifications/views.py')
-rw-r--r--mediagoblin/notifications/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mediagoblin/notifications/views.py b/mediagoblin/notifications/views.py
index cfe66b2e..984b9c9b 100644
--- a/mediagoblin/notifications/views.py
+++ b/mediagoblin/notifications/views.py
@@ -57,7 +57,10 @@ def mark_all_comment_notifications_seen(request):
Marks all comment notifications seen.
"""
for comment in get_notifications(request.user.id):
- mark_comment_notification_seen(comment.subject_id, request.user)
+ mark_comment_notification_seen(
+ comment.obj().get_comment_link().id,
+ request.user
+ )
if request.GET.get('next'):
return redirect(request, location=request.GET.get('next'))