logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: e2832da2ce972ad1d8d13b65623de3ce9f9dfdf8
parent bee3d6d0cb6c6af5eae165c1a2040e0c30b816ca
Author: Alex Gleason <alex@alexgleason.me>
Date:   Sun, 19 Dec 2021 18:51:41 +0000

Merge branch 'mkljczk-develop-patch-64464' into 'develop'

Add "exposable_reactions" to features, if showing reactions

See merge request pleroma/pleroma!3523

Diffstat:

Mlib/pleroma/web/mastodon_api/views/instance_view.ex5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/pleroma/web/mastodon_api/views/instance_view.ex b/lib/pleroma/web/mastodon_api/views/instance_view.ex @@ -83,7 +83,10 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do "safe_dm_mentions" end, "pleroma_emoji_reactions", - "pleroma_chat_messages" + "pleroma_chat_messages", + if Config.get([:instance, :show_reactions]) do + "exposable_reactions" + end ] |> Enum.filter(& &1) end