aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/notification.ex
diff options
context:
space:
mode:
authorkaniini <ariadne@dereferenced.org>2019-09-16 09:09:21 +0000
committerkaniini <ariadne@dereferenced.org>2019-09-16 09:09:21 +0000
commitc623b4324deaf236334a0f77a81435b5bffadf3c (patch)
tree3e4ed9af085e410ebab1adbb6ecc1d9cd84f3e42 /lib/pleroma/notification.ex
parent4fabf83ad01352442906d79187aeab4c777f4df8 (diff)
downloadpleroma-c623b4324deaf236334a0f77a81435b5bffadf3c.tar.gz
Revert "Merge branch 'streamer-refactoring' into 'develop'"
This reverts merge request !1653
Diffstat (limited to 'lib/pleroma/notification.ex')
-rw-r--r--lib/pleroma/notification.ex6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex
index 8012389ac..b7c880c51 100644
--- a/lib/pleroma/notification.ex
+++ b/lib/pleroma/notification.ex
@@ -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