MastodonAPI: Stream fixes.

This commit is contained in:
Roger Braun 2017-11-16 13:48:58 +01:00
commit 5719f69ae3
3 changed files with 13 additions and 3 deletions

View file

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