aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcin mikołajczak <me@mkljczk.pl>2021-09-09 18:35:45 +0000
committermarcin mikołajczak <me@mkljczk.pl>2021-09-09 18:35:45 +0000
commit555d7d57c9a408185617268ca810002cbd59f764 (patch)
tree437831f5d1f612ecafee3f031baceded976f467f
parent6b3842cf50c063a63980c8d4dca93b25424059f2 (diff)
downloadpleroma-555d7d57c9a408185617268ca810002cbd59f764.tar.gz
Add "exposable_reactions" to features, if showing reactions
-rw-r--r--lib/pleroma/web/mastodon_api/views/instance_view.ex5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/instance_view.ex b/lib/pleroma/web/mastodon_api/views/instance_view.ex
index ef208062b..70305b1c1 100644
--- 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