Fix "quote": { "type": "Tombstone" } being ignored
This commit is contained in:
parent
67575e59e6
commit
a186bad399
5 changed files with 68 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue