Skip tombstone creation on deleting from 404 (#37533)

This commit is contained in:
Claire 2026-01-19 11:36:58 +01:00 committed by GitHub
parent e4c6130f77
commit 9b6500f74a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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