Merge branch 'admin_api_invite_tokens' into 'develop'
[akkoma] / lib / pleroma / notification.ex
index b7c880c51584da65c62d87e194ee6dbc3bdc1b1d..8012389ac3753d55b88307095c274f7bc1bdd297 100644 (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