th: activitypub: create: fix up quoteUri/quoteUrl/quoteURL handling

lolsob-rspec
Ariadne Conill 2022-12-28 05:15:25 +00:00
parent 9667225e84
commit 5ab8a6bcff
1 changed files with 5 additions and 1 deletions

View File

@ -429,8 +429,12 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
end end
def guess_quote_url 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"] @object["quoteUrl"]
elsif @object["quoteURL"] && !@object["quoteURL"].empty?
@object["quoteURL"]
elsif @object["_misskey_quote"] && !@object["_misskey_quote"].empty? elsif @object["_misskey_quote"] && !@object["_misskey_quote"].empty?
@object["_misskey_quote"] @object["_misskey_quote"]
else else