1 defmodule Pleroma.Web.ChatChannel do
4 def join("chat:public", _message, socket) do
8 def handle_in("new_msg", %{"text" => text}, socket) do
9 author = socket.assigns[:user]
10 author = Pleroma.Web.MastodonAPI.AccountView.render("account.json", user: author)
11 broadcast! socket, "new_msg", %{text: text, author: author}