diff --git a/lib/activityobject.php b/lib/activityobject.php index 7e9ddf48af..3be64c13e0 100644 --- a/lib/activityobject.php +++ b/lib/activityobject.php @@ -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;