diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/serializers/activitypub/note_serializer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/serializers/activitypub/note_serializer.rb b/app/serializers/activitypub/note_serializer.rb index 3749fcd22..3492069cc 100644 --- a/app/serializers/activitypub/note_serializer.rb +++ b/app/serializers/activitypub/note_serializer.rb @@ -35,6 +35,8 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer def id raise Mastodon::NotPermittedError, 'Local-only statuses should not be serialized' if object.local_only? + raise Mastodon::NotPermittedError, 'Hidden statuses should not be serialized' if object.hidden + ActivityPub::TagManager.instance.uri_for(object) end |