diff options
author | Mark Felder <feld@feld.me> | 2021-06-01 12:57:18 -0500 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2021-06-01 13:17:50 -0500 |
commit | 2743c6669311ecb9a985a959dfd28b7aeed8783a (patch) | |
tree | 7e14eee3dd41c8bc60ad92db04494b8d51f11341 | |
parent | 48a0ea2fc342c9a757222b0755a0cad9b725bdc7 (diff) | |
download | pleroma-2743c6669311ecb9a985a959dfd28b7aeed8783a.tar.gz |
Add "chat" back as a feature for backwards compat.
Legacy PleromaFE uses this to identify if ShoutBox is available.
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/instance_view.ex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/instance_view.ex b/lib/pleroma/web/mastodon_api/views/instance_view.ex index fcb4e2466..3528185d5 100644 --- a/lib/pleroma/web/mastodon_api/views/instance_view.ex +++ b/lib/pleroma/web/mastodon_api/views/instance_view.ex @@ -69,6 +69,10 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do if Config.get([:gopher, :enabled]) do "gopher" end, + # backwards compat + if Config.get([:shout, :enabled]) do + "chat" + end, if Config.get([:shout, :enabled]) do "shout" end, |