mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Fix error when processing Add activity where the target is embedded and not a special collection (#38282)
This commit is contained in:
@@ -17,7 +17,7 @@ class ActivityPub::Activity::Add < ActivityPub::Activity
|
||||
|
||||
add_collection
|
||||
else
|
||||
@collection = @account.collections.find_by(uri: @json['target'])
|
||||
@collection = @account.collections.find_by(uri: value_or_id(@json['target']))
|
||||
add_collection_item if @collection && Mastodon::Feature.collections_federation_enabled?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user