activitypub: create: fix up quoteUri/quoteUrl/quoteURL handling
ci/woodpecker/push/woodpecker Pipeline was successful Details

pull/37/head^2
Ariadne Conill 2022-12-28 05:15:25 +00:00
parent 384ac613d8
commit 985ef99590
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