Better URL creation for attachments

This commit is contained in:
Evan Prodromou 2013-06-05 16:12:54 -04:00
parent 5ba2cb07ea
commit a9b2a86004

View File

@ -560,7 +560,7 @@ class ActivityObject
$object->type = self::mimeTypeToObjectType($file->mimetype); $object->type = self::mimeTypeToObjectType($file->mimetype);
$object->id = TagURI::mint(sprintf("file:%d", $file->id)); $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) { if ($file->title) {
$object->title = $file->title; $object->title = $file->title;