aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2021-06-01 11:55:51 -0500
committerMark Felder <feld@feld.me>2021-06-01 11:56:51 -0500
commit48a0ea2fc342c9a757222b0755a0cad9b725bdc7 (patch)
treee7591d336eeeda5f4eb5eed969680a21ebd231cf
parentd9513b11d3c18c4d30cdcab700bb5ed39b3356ea (diff)
downloadpleroma-48a0ea2fc342c9a757222b0755a0cad9b725bdc7.tar.gz
Wire up join requests to the old "chat:public" channel into the new "shout:public" channel
-rw-r--r--lib/pleroma/web/shout_channel.ex3
1 files changed, 3 insertions, 0 deletions
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}