From: Mark Felder Date: Tue, 1 Jun 2021 16:55:51 +0000 (-0500) Subject: Wire up join requests to the old "chat:public" channel into the new "shout:public... X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=48a0ea2fc342c9a757222b0755a0cad9b725bdc7;p=akkoma Wire up join requests to the old "chat:public" channel into the new "shout:public" channel --- 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}