From c9b3cf8510df4698b66055c4f46757cc78d01597 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 17 Mar 2022 00:46:49 +0100 Subject: [PATCH] Fix searching already-known converted activities by URL (#17814) Fixes #17813 --- app/lib/activitypub/activity/update.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/lib/activitypub/activity/update.rb b/app/lib/activitypub/activity/update.rb index 5802ead5d9..5b3238ece5 100644 --- a/app/lib/activitypub/activity/update.rb +++ b/app/lib/activitypub/activity/update.rb @@ -8,6 +8,8 @@ class ActivityPub::Activity::Update < ActivityPub::Activity update_account elsif equals_or_includes_any?(@object['type'], %w(Note Question)) update_status + elsif converted_object_type? + Status.find_by(uri: object_uri, account_id: @account.id) end end