forked from GNUsocial/gnu-social
Better URL creation for attachments
This commit is contained in:
parent
7366ee73f5
commit
dbceb7ba1a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user