From e3e14c53efc269f4e3fd8dc9db8c1c9448edeaf4 Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Sun, 27 Mar 2022 18:46:41 +0100 Subject: [PATCH] [PLUGIN][ActivityPub] Model/Note->toJson federate the url, even though it's the same as the id --- plugins/ActivityPub/Util/Model/Note.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/ActivityPub/Util/Model/Note.php b/plugins/ActivityPub/Util/Model/Note.php index 23e5f1a95e..32b87c18bb 100644 --- a/plugins/ActivityPub/Util/Model/Note.php +++ b/plugins/ActivityPub/Util/Model/Note.php @@ -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(),