From: Mark Felder Date: Tue, 5 Jan 2021 18:25:30 +0000 (-0600) Subject: URI.encode custom emojis X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=64116f63d99a1eab9b697fc7a103e72dc80a095c;p=akkoma URI.encode custom emojis --- diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 565d32433..5499f8a08 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -919,7 +919,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do defp build_emoji_tag({name, url}) do %{ - "icon" => %{"url" => url, "type" => "Image"}, + "icon" => %{"url" => "#{URI.encode(url)}", "type" => "Image"}, "name" => ":" <> name <> ":", "type" => "Emoji", "updated" => "1970-01-01T00:00:00Z",