diff options
Diffstat (limited to 'mediagoblin/federation/views.py')
-rw-r--r-- | mediagoblin/federation/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mediagoblin/federation/views.py b/mediagoblin/federation/views.py index 69dee7fb..5b10fb5b 100644 --- a/mediagoblin/federation/views.py +++ b/mediagoblin/federation/views.py @@ -360,9 +360,9 @@ def feed_endpoint(request, outbox=None): status=403 ) - if not comment.unserialize(data["object"]): + if not comment.unserialize(data["object"], request): return json_error( - "Invalid 'comment' with id '{0}'".format(obj_id) + "Invalid 'comment' with id '{0}'".format(obj["id"]) ) comment.save() @@ -382,7 +382,7 @@ def feed_endpoint(request, outbox=None): image = MediaEntry.query.filter_by(id=obj_id).first() if image is None: return json_error( - "No such 'image' with the id '{0}'.".format(obj_id) + "No such 'image' with the id '{0}'.".format(obj["id"]) ) # Check that the person trying to update the comment is |