about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-03-17 00:46:49 +0100
committerGitHub <noreply@github.com>2022-03-17 00:46:49 +0100
commitc9b3cf8510df4698b66055c4f46757cc78d01597 (patch)
tree406fbf9f18874488e570824edf1f035dd510a69d /app
parente798c1c64cf417b88379e1d381592a8920fdeeab (diff)
Fix searching already-known converted activities by URL (#17814)
Fixes #17813
Diffstat (limited to 'app')
-rw-r--r--app/lib/activitypub/activity/update.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/activitypub/activity/update.rb b/app/lib/activitypub/activity/update.rb
index 5802ead5d..5b3238ece 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