Wire up join requests to the old "chat:public" channel into the new "shout:public...
[akkoma] / 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}