transmogrifier: Remove mastodon emoji-format from emoji field

This commit is contained in:
Haelwenn (lanodan) Monnier 2020-08-25 00:38:10 +02:00
parent 9d63b2c9db
commit 2ecc7d9230
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE

View File

@ -318,9 +318,6 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
Map.put(mapping, name, data["icon"]["url"]) Map.put(mapping, name, data["icon"]["url"])
end) end)
# we merge mastodon and pleroma emoji into a single mapping, to allow for both wire formats
emoji = Map.merge(object["emoji"] || %{}, emoji)
Map.put(object, "emoji", emoji) Map.put(object, "emoji", emoji)
end end