aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/notifications/views.py
diff options
context:
space:
mode:
authorJessica Tallon <tsyesika@tsyesika.se>2016-02-29 12:03:41 +0000
committerJessica Tallon <tsyesika@tsyesika.se>2016-02-29 12:33:51 +0000
commit6efcab2d69c5745c2ea9616302a08e38a5af3de6 (patch)
tree4844f7d68854db032ef9c2588adf819de3a291d8 /mediagoblin/notifications/views.py
parent6d38b1858c73cd7154c9fdabdc17594a820d311b (diff)
downloadmediagoblin-6efcab2d69c5745c2ea9616302a08e38a5af3de6.tar.lz
mediagoblin-6efcab2d69c5745c2ea9616302a08e38a5af3de6.tar.xz
mediagoblin-6efcab2d69c5745c2ea9616302a08e38a5af3de6.zip
Change Notification.object_id to be ID of Comemnt not TextComment
This shouldn't really effect much but it is a needed change for the future this changes the Notification.object_id to be the ID of the Comment (the link table to the comment object) rather than TextComment (the comment object itself). This is needed as now comments can be other things, other than TextComment.
Diffstat (limited to 'mediagoblin/notifications/views.py')
-rw-r--r--mediagoblin/notifications/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/notifications/views.py b/mediagoblin/notifications/views.py
index 984b9c9b..7298e964 100644
--- a/mediagoblin/notifications/views.py
+++ b/mediagoblin/notifications/views.py
@@ -58,7 +58,7 @@ def mark_all_comment_notifications_seen(request):
"""
for comment in get_notifications(request.user.id):
mark_comment_notification_seen(
- comment.obj().get_comment_link().id,
+ comment.id,
request.user
)