Browse Source

Fix searching already-known converted activities by URL (#17814)

Fixes #17813
closed-social-glitch-2
Claire 2 years ago
committed by GitHub
parent
commit
c9b3cf8510
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/lib/activitypub/activity/update.rb

+ 2
- 0
app/lib/activitypub/activity/update.rb View File

@ -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

Loading…
Cancel
Save