We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit a9b2a860 authored by Evan Prodromou's avatar Evan Prodromou

Better URL creation for attachments

parent 5ba2cb07
......@@ -560,7 +560,7 @@ class ActivityObject
$object->type = self::mimeTypeToObjectType($file->mimetype);
$object->id = TagURI::mint(sprintf("file:%d", $file->id));
$object->link = common_local_url('attachment', array('id' => $file->id));
$object->link = common_local_url('attachment', array('attachment' => $file->id));
if ($file->title) {
$object->title = $file->title;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment