2
0

Revoke quote posts when those get deleted (#35614)

This commit is contained in:
Claire
2025-07-31 16:23:36 +02:00
committed by GitHub
parent 19db4cb7c1
commit 0e249cba4b
2 changed files with 5 additions and 0 deletions

View File

@@ -47,6 +47,9 @@ class RemoveStatusService < BaseService
remove_media
end
# Revoke the quote while we get a chance… maybe this should be a `before_destroy` hook?
RevokeQuoteService.new.call(@status.quote) if @status.quote&.quoted_account&.local? && @status.quote&.accepted?
@status.destroy! if permanently?
end
end