mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Raise exception when attempting to serialize local-only statuses
This commit is contained in:
parent
22130a0947
commit
6c0428b7d8
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
|
|||
attribute :closed, if: :poll_and_expired?
|
||||
|
||||
def id
|
||||
raise Mastodon::NotPermittedError, 'Local-only statuses should not be serialized' if object.local_only?
|
||||
ActivityPub::TagManager.instance.uri_for(object)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue