2
0

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

This commit is contained in:
Claire
2025-07-25 18:50:38 +02:00
parent 77d2cdb302
commit 6ff4e83937
5 changed files with 6 additions and 16 deletions

View File

@@ -42,14 +42,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)