Browse Source

Skip tombstone creation on deleting from 404 (#37533)

pull/1371/head
Claire 3 months ago committed by Misty De Meo
parent
commit
7c16a2b095
No known key found for this signature in database
GPG Key ID: 76CF846A2F674B2C
  1. 1
      app/services/activitypub/fetch_remote_status_service.rb

1
app/services/activitypub/fetch_remote_status_service.rb

@ -92,7 +92,6 @@ class ActivityPub::FetchRemoteStatusService < BaseService
existing_status = Status.remote.find_by(uri: uri)
if existing_status&.distributable?
Rails.logger.debug { "FetchRemoteStatusService - Got 404 for orphaned status with URI #{uri}, deleting" }
Tombstone.find_or_create_by(uri: uri, account: existing_status.account)
RemoveStatusService.new.call(existing_status, redraft: false)
end
end

Loading…
Cancel
Save