Wire up join requests to the old "chat:public" channel into the new "shout:public...
authorMark Felder <feld@feld.me>
Tue, 1 Jun 2021 16:55:51 +0000 (11:55 -0500)
committerMark Felder <feld@feld.me>
Tue, 1 Jun 2021 16:56:51 +0000 (11:56 -0500)
lib/pleroma/web/shout_channel.ex

index dc342fdfb191b01b60501d5ae9fc7e58a99d15fd..70d9cc1e193594da2530d205924473baa7ff7def 100644 (file)
@@ -9,6 +9,9 @@ defmodule Pleroma.Web.ShoutChannel do
   alias Pleroma.Web.MastodonAPI.AccountView
   alias Pleroma.Web.ShoutChannel.ShoutChannelState
 
+  # Backwards compatibility
+  def join("chat:public", message, socket), do: join("shout:public", message, socket)
+
   def join("shout:public", _message, socket) do
     send(self(), :after_join)
     {:ok, socket}