diff options
Diffstat (limited to 'lib/pleroma/web/streamer.ex')
-rw-r--r-- | lib/pleroma/web/streamer.ex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pleroma/web/streamer.ex b/lib/pleroma/web/streamer.ex index a417178ba..d81732a1a 100644 --- a/lib/pleroma/web/streamer.ex +++ b/lib/pleroma/web/streamer.ex @@ -42,8 +42,8 @@ defmodule Pleroma.Web.Streamer do Enum.each(topics[topic] || [], fn (socket) -> json = %{ event: "notification", - payload: Pleroma.Web.MastodonAPI.MastodonAPIController.render_notification(socket.assigns["user"], item) |> Poison.encode! - } |> Poison.encode! + payload: Pleroma.Web.MastodonAPI.MastodonAPIController.render_notification(socket.assigns["user"], item) |> Jason.encode! + } |> Jason.encode! send socket.transport_pid, {:text, json} end) @@ -95,8 +95,8 @@ defmodule Pleroma.Web.Streamer do Enum.each(topics[topic] || [], fn (socket) -> json = %{ event: "update", - payload: Pleroma.Web.MastodonAPI.StatusView.render("status.json", activity: item, for: socket.assigns[:user]) |> Poison.encode! - } |> Poison.encode! + payload: Pleroma.Web.MastodonAPI.StatusView.render("status.json", activity: item, for: socket.assigns[:user]) |> Jason.encode! + } |> Jason.encode! send socket.transport_pid, {:text, json} end) |