aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/user_pages/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/user_pages/views.py')
-rw-r--r--mediagoblin/user_pages/views.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py
index b6cbcabd..822f359a 100644
--- a/mediagoblin/user_pages/views.py
+++ b/mediagoblin/user_pages/views.py
@@ -195,15 +195,14 @@ def media_post_comment(request, media):
messages.ERROR,
_("Oops, your comment was empty."))
else:
+ create_activity("post", comment, comment.author, target=media)
+ add_comment_subscription(request.user, media)
comment.save()
messages.add_message(
request, messages.SUCCESS,
_('Your comment has been posted!'))
-
trigger_notification(comment, media, request)
- create_activity("post", comment, comment.author, target=media)
- add_comment_subscription(request.user, media)
return redirect_obj(request, media)
@@ -263,8 +262,8 @@ def media_collect(request, media):
collection.description = form.collection_description.data
collection.creator = request.user.id
collection.generate_slug()
- collection.save()
create_activity("create", collection, collection.creator)
+ collection.save()
# Otherwise, use the collection selected from the drop-down
else: