diff options
author | Jessica Tallon <tsyesika@tsyesika.se> | 2016-02-29 12:03:41 +0000 |
---|---|---|
committer | Jessica Tallon <tsyesika@tsyesika.se> | 2016-02-29 12:33:51 +0000 |
commit | 6efcab2d69c5745c2ea9616302a08e38a5af3de6 (patch) | |
tree | 4844f7d68854db032ef9c2588adf819de3a291d8 /mediagoblin/user_pages | |
parent | 6d38b1858c73cd7154c9fdabdc17594a820d311b (diff) | |
download | mediagoblin-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/user_pages')
-rw-r--r-- | mediagoblin/user_pages/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py index 547048d6..ad03e011 100644 --- a/mediagoblin/user_pages/views.py +++ b/mediagoblin/user_pages/views.py @@ -207,7 +207,7 @@ def media_post_comment(request, media): messages.add_message( request, messages.SUCCESS, _('Your comment has been posted!')) - trigger_notification(comment, media, request) + trigger_notification(link, media, request) return redirect_obj(request, media) |