2
0

Rename unknown quote policy value to unsupported_policy (#35955)

This commit is contained in:
Claire
2025-08-29 15:50:37 +02:00
committed by GitHub
parent 8b7685d956
commit 4fa203e69e
4 changed files with 10 additions and 6 deletions

View File

@@ -152,8 +152,8 @@ class ActivityPub::Parser::StatusParser
# Remove the special-meaning actor URI
allowed_actors.delete(@options[:actor_uri])
# Any unrecognized actor is marked as unknown
flags |= Status::QUOTE_APPROVAL_POLICY_FLAGS[:unknown] unless allowed_actors.empty?
# Any unrecognized actor is marked as unsupported
flags |= Status::QUOTE_APPROVAL_POLICY_FLAGS[:unsupported_policy] unless allowed_actors.empty?
flags
end