Add "exposable_reactions" to features, if showing reactions
authormarcin mikołajczak <me@mkljczk.pl>
Thu, 9 Sep 2021 18:35:45 +0000 (18:35 +0000)
committermarcin mikołajczak <me@mkljczk.pl>
Thu, 9 Sep 2021 18:35:45 +0000 (18:35 +0000)
lib/pleroma/web/mastodon_api/views/instance_view.ex

index ef208062bdb121f12ecd77be6c5d5d38979d4587..70305b1c1b5567a999a08842a14b1126fab47779 100644 (file)
@@ -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