mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2024-11-20 05:49:54 +01: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
1 changed files with 2 additions and 0 deletions
|
@ -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