Merge in /api/v1/instance feature for fedi games

Allows configuration to disable them on the instance
This commit is contained in:
Fox 2023-03-12 11:21:42 +09:00
parent 71d3c83a4a
commit b2e24486d9

View file

@ -77,6 +77,9 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do
if Config.get([:shout, :enabled]) do
"shout"
end,
if Config.get([:games, :enabled]) do
"fedi_games"
end,
if Config.get([:instance, :allow_relay]) do
"relay"
end,
@ -84,7 +87,7 @@ 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,