Revert "Merge branch 'streamer-refactoring' into 'develop'"
[akkoma] / lib / pleroma / notification.ex
index 8012389ac3753d55b88307095c274f7bc1bdd297..b7c880c51584da65c62d87e194ee6dbc3bdc1b1d 100644 (file)
@@ -210,10 +210,8 @@ defmodule Pleroma.Notification do
     unless skip?(activity, user) do
       notification = %Notification{user_id: user.id, activity: activity}
       {:ok, notification} = Repo.insert(notification)
-
-      ["user", "user:notification"]
-      |> Streamer.stream(notification)
-
+      Streamer.stream("user", notification)
+      Streamer.stream("user:notification", notification)
       Push.send(notification)
       notification
     end