Add "chat" back as a feature for backwards compat.
authorMark Felder <feld@feld.me>
Tue, 1 Jun 2021 17:57:18 +0000 (12:57 -0500)
committerMark Felder <feld@feld.me>
Tue, 1 Jun 2021 18:17:50 +0000 (13:17 -0500)
Legacy PleromaFE uses this to identify if ShoutBox is available.

lib/pleroma/web/mastodon_api/views/instance_view.ex

index fcb4e2466063e564ccf5c26fea083664efedd28b..3528185d50345e102edc18686db70bde420cd08f 100644 (file)
@@ -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,