diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index e4057f108..90f6f8469 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -572,7 +572,7 @@ defp build_emoji_map(emoji, users, url, current_user) do %{ name: emoji, count: length(users), - url: url, + url: MediaProxy.url(url), me: !!(current_user && current_user.ap_id in users) } end diff --git a/lib/pleroma/web/pleroma_api/views/emoji_reaction_view.ex b/lib/pleroma/web/pleroma_api/views/emoji_reaction_view.ex index 3575f50da..85eb09d25 100644 --- a/lib/pleroma/web/pleroma_api/views/emoji_reaction_view.ex +++ b/lib/pleroma/web/pleroma_api/views/emoji_reaction_view.ex @@ -6,6 +6,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiReactionView do use Pleroma.Web, :view alias Pleroma.Web.MastodonAPI.AccountView + alias Pleroma.Web.MediaProxy def render("index.json", %{emoji_reactions: emoji_reactions} = opts) do render_many(emoji_reactions, __MODULE__, "show.json", opts) @@ -17,7 +18,7 @@ def render("show.json", %{emoji_reaction: {emoji, user_ap_ids, url}, user: user} name: emoji, count: length(users), accounts: render(AccountView, "index.json", users: users, for: user), - url: url, + url: MediaProxy.url(url), me: !!(user && user.ap_id in user_ap_ids) } end