Fix handling of QuoteRequest rejections when those can't be found by id (#39820)

This commit is contained in:
Shlee 2026-07-15 23:10:26 +09:30 committed by Tarrien
parent 1598c106ef
commit 6f772ef533

View File

@ -37,7 +37,7 @@ class ActivityPub::Activity::Reject < ActivityPub::Activity
quote = quote_from_request_json(@object) quote = quote_from_request_json(@object)
return unless quote.present? && quote.status.local? return unless quote.present? && quote.status.local?
reject_quote!(quoting_status.quote) reject_quote!(quote)
end end
def reject_quote!(quote) def reject_quote!(quote)