2
0

Fix "quote": { "type": "Tombstone" } being ignored

This commit is contained in:
Claire
2025-10-07 15:14:38 +02:00
parent 67575e59e6
commit a186bad399
5 changed files with 68 additions and 2 deletions

View File

@@ -117,6 +117,10 @@ class ActivityPub::Parser::StatusParser
flags
end
def quote?
%w(quote _misskey_quote quoteUrl quoteUri).any? { |key| @object[key].present? }
end
def quote_uri
%w(quote _misskey_quote quoteUrl quoteUri).filter_map do |key|
value_or_id(as_array(@object[key]).first)