Streamer refactoring

This commit is contained in:
Steven Fuchs 2019-09-16 07:44:03 +00:00 committed by kaniini
commit aab264db82
26 changed files with 888 additions and 447 deletions

View file

@ -210,8 +210,10 @@ defmodule Pleroma.Notification do
unless skip?(activity, user) do
notification = %Notification{user_id: user.id, activity: activity}
{:ok, notification} = Repo.insert(notification)
Streamer.stream("user", notification)
Streamer.stream("user:notification", notification)
["user", "user:notification"]
|> Streamer.stream(notification)
Push.send(notification)
notification
end