Add web push support
[akkoma] / lib / pleroma / notification.ex
index e0dcd98236eb8984a4b2b36ae13b15b65d4d97b4..6163413c81be56977457dcf0e7d003bd4e320fdb 100644 (file)
@@ -96,6 +96,7 @@ defmodule Pleroma.Notification do
       notification = %Notification{user_id: user.id, activity: activity}
       {:ok, notification} = Repo.insert(notification)
       Pleroma.Web.Streamer.stream("user", notification)
+      Pleroma.Web.Push.send(notification)
       notification
     end
   end