Change quote verification to not bypass authorization flow for mentions (#35528)

This commit is contained in:
Claire 2025-07-31 09:39:53 +02:00 committed by GitHub
parent 2131d1ff23
commit 572a0e128d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 13 additions and 31 deletions

View file

@ -45,14 +45,7 @@ class ActivityPub::VerifyQuoteService < BaseService
true
end
# Always allow someone to quote posts in which they are mentioned
if @quote.quoted_status.active_mentions.exists?(mentions: { account_id: @quote.account_id })
@quote.accept!
true
else
false
end
false
end
def fetch_approval_object(uri, prefetched_body: nil)