MastodonAPI: Stream fixes.
This commit is contained in:
parent
a2d7e0f4d4
commit
5719f69ae3
3 changed files with 13 additions and 3 deletions
|
|
@ -43,7 +43,7 @@ defmodule Pleroma.Web.Streamer do
|
|||
Enum.each(topics[topic] || [], fn (socket) ->
|
||||
json = %{
|
||||
event: "update",
|
||||
payload: Pleroma.Web.MastodonAPI.StatusView.render("status.json", activity: item) |> Poison.encode!
|
||||
payload: Pleroma.Web.MastodonAPI.StatusView.render("status.json", activity: item, for: socket.assigns[:user]) |> Poison.encode!
|
||||
} |> Poison.encode!
|
||||
|
||||
send socket.transport_pid, {:text, json}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue