From 48a0ea2fc342c9a757222b0755a0cad9b725bdc7 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Tue, 1 Jun 2021 11:55:51 -0500 Subject: [PATCH] Wire up join requests to the old "chat:public" channel into the new "shout:public" channel --- lib/pleroma/web/shout_channel.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/pleroma/web/shout_channel.ex b/lib/pleroma/web/shout_channel.ex index dc342fdfb..70d9cc1e1 100644 --- 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} -- 2.45.2