Wire up join requests to the old "chat:public" channel into the new "shout:public" channel

This commit is contained in:
Mark Felder 2021-06-01 11:55:51 -05:00
parent d9513b11d3
commit 48a0ea2fc3
1 changed files with 3 additions and 0 deletions

View 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}