This commit is contained in:
Roger Braun 2017-11-08 18:23:19 +01:00
parent 85e97678f4
commit a00dbfe05c
1 changed files with 7 additions and 0 deletions

View File

@ -57,6 +57,13 @@ defmodule Pleroma.Notification do
Streamer.stream(user, %{type: "notification", payload: json})
if activity.data["type"] == "Create" do
json = StatusView.render("status.json", %{activity: activity, for: user})
|> Poison.encode!
Streamer.stream(user, %{type: "update", payload: json})
end
notification
end
end