aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/federation
diff options
context:
space:
mode:
authorJessica Tallon <jessica@megworld.co.uk>2014-10-22 21:42:57 +0100
committerJessica Tallon <jessica@megworld.co.uk>2014-10-22 21:42:57 +0100
commit63c865790a6e9932a7b8d5953fc57536db0e20f4 (patch)
tree0b7df6a89df30009396a6b9d75dbd02c1daaf84f /mediagoblin/federation
parentc785f3a09070173ed31fd4f16544c25e12e01b96 (diff)
downloadmediagoblin-63c865790a6e9932a7b8d5953fc57536db0e20f4.tar.lz
mediagoblin-63c865790a6e9932a7b8d5953fc57536db0e20f4.tar.xz
mediagoblin-63c865790a6e9932a7b8d5953fc57536db0e20f4.zip
Only create a slug after a media upload via the API when there is a title
Diffstat (limited to 'mediagoblin/federation')
-rw-r--r--mediagoblin/federation/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mediagoblin/federation/views.py b/mediagoblin/federation/views.py
index 4c0593fc..4dad82d6 100644
--- a/mediagoblin/federation/views.py
+++ b/mediagoblin/federation/views.py
@@ -301,6 +301,7 @@ def feed_endpoint(request):
return json_error(
"Invalid 'image' with id '{0}'".format(obj_id)
)
+ image.generate_slug()
image.save()
activity = {