activitypub: create: fix up quoteUri/quoteUrl/quoteURL handling
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
parent
384ac613d8
commit
985ef99590
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue