Fix "quote": { "type": "Tombstone" } being ignored
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user