From d9dbe62417e6e40d93c42471b7f47f53a0a1f782 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 19 Mar 2026 09:13:50 +0100 Subject: [PATCH] Fix error when processing `Add` activity where the target is embedded and not a special collection (#38282) --- app/lib/activitypub/activity/add.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/activitypub/activity/add.rb b/app/lib/activitypub/activity/add.rb index 7b4576a06a..cfaf29a3be 100644 --- a/app/lib/activitypub/activity/add.rb +++ b/app/lib/activitypub/activity/add.rb @@ -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