[PLUGIN][ActivityPub] Model/Note->toJson federate the url, even though it's the same as the id

This commit is contained in:
Diogo Peralta Cordeiro 2022-03-27 18:46:41 +01:00
parent be33c20614
commit e3e14c53ef
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0

View File

@ -376,6 +376,7 @@ class Note extends Model
default => throw new Exception('Unsupported note type.')
}),
'id' => $object->getUrl(),
'url' => $object->getUrl(),
'published' => $object->getCreated()->format(DateTimeInterface::RFC3339),
'attributedTo' => $object->getActor()->getUri(Router::ABSOLUTE_URL),
'name' => $object->getTitle(),