commit: 48a0ea2fc342c9a757222b0755a0cad9b725bdc7
parent d9513b11d3c18c4d30cdcab700bb5ed39b3356ea
Author: Mark Felder <feld@feld.me>
Date: Tue, 1 Jun 2021 11:55:51 -0500
Wire up join requests to the old "chat:public" channel into the new "shout:public" channel
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/pleroma/web/shout_channel.ex b/lib/pleroma/web/shout_channel.ex
@@ -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}