th: activitypub: create: fix up quoteUri/quoteUrl/quoteURL handling
parent
9667225e84
commit
5ab8a6bcff
|
@ -429,8 +429,12 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
|||
end
|
||||
|
||||
def guess_quote_url
|
||||
if @object["quoteUrl"] && !@object["quoteUrl"].empty?
|
||||
if @object["quoteUri"] && !@object["quoteUri"].empty?
|
||||
@object["quoteUri"]
|
||||
elsif @object["quoteUrl"] && !@object["quoteUrl"].empty?
|
||||
@object["quoteUrl"]
|
||||
elsif @object["quoteURL"] && !@object["quoteURL"].empty?
|
||||
@object["quoteURL"]
|
||||
elsif @object["_misskey_quote"] && !@object["_misskey_quote"].empty?
|
||||
@object["_misskey_quote"]
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue