mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-25 18:36:21 +00:00
ensure we can't run the same clause of fix_quote_url more than once
This commit is contained in:
parent
bf3f934275
commit
4f6caae209
|
@ -201,12 +201,14 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
|
|||
def fix_quote_url(%{"quoteURL" => quote_url} = object, options) do
|
||||
object
|
||||
|> Map.put("quoteUri", quote_url)
|
||||
|> Map.delete("quoteURL")
|
||||
|> fix_quote_url(options)
|
||||
end
|
||||
|
||||
def fix_quote_url(%{"_misskey_quote" => quote_url} = object, options) do
|
||||
object
|
||||
|> Map.put("quoteUri", quote_url)
|
||||
|> Map.delete("_misskey_quote")
|
||||
|> fix_quote_url(options)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue