else:
feed_url = None
+ add_comment_subscription(user, entry)
+
+ # Create activity
+ create_activity("post", entry, entry.uploader)
+ entry.save()
+
# Pass off to processing
#
# (... don't change entry after this point to avoid race
# conditions with changes to the document via processing code)
run_process_media(entry, feed_url)
- add_comment_subscription(user, entry)
-
- # Create activity
- entry.activity = create_activity("post", entry, entry.uploader).id
- entry.save()
-
return entry
qualified=True, user=request.user.username
)
- run_process_media(entry, feed_url)
add_comment_subscription(request.user, entry)
# Create activity
- entry.activity = create_activity("post", entry, entry.uploader).id
+ create_activity("post", entry, entry.uploader)
entry.save()
+ run_process_media(entry, feed_url)
return json_response(entry.serialize(request))
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)
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: