From a00dbfe05c33360a90d3a138f014c1863ffc93cf Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Wed, 8 Nov 2017 18:23:19 +0100 Subject: [PATCH] . --- lib/pleroma/notification.ex | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index 9c6919864..edc27938d 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -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