Actually, don't send _misskey_quote anymore

This commit is contained in:
Alex Gleason 2022-01-28 17:53:19 -06:00 committed by tusooa
commit 79fca39faf
No known key found for this signature in database
GPG key ID: 42AEC43D48433C51
3 changed files with 5 additions and 9 deletions

View file

@ -668,13 +668,12 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
def set_reply_to_uri(obj), do: obj
@doc """
Fedibird compatibility
https://github.com/fedibird/mastodon/commit/dbd7ae6cf58a92ec67c512296b4daaea0d01e6ac
"""
def set_quote_url(%{"quoteUrl" => quote_url} = object) when is_binary(quote_url) do
Map.merge(object, %{
# Fedibird quote
"quoteUri" => quote_url,
# Misskey quote
"_misskey_quote" => quote_url
})
Map.put(object, "quoteUri", quote_url)
end
def set_quote_url(obj), do: obj