Add "exposable_reactions" to features, if showing reactions

This commit is contained in:
marcin mikołajczak 2021-09-09 18:35:45 +00:00
parent 6b3842cf50
commit 555d7d57c9

View file

@ -83,7 +83,10 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do
"safe_dm_mentions" "safe_dm_mentions"
end, end,
"pleroma_emoji_reactions", "pleroma_emoji_reactions",
"pleroma_chat_messages" "pleroma_chat_messages",
if Config.get([:instance, :show_reactions]) do
"exposable_reactions"
end
] ]
|> Enum.filter(& &1) |> Enum.filter(& &1)
end end