Add web push support

This commit is contained in:
Egor Kislitsyn 2018-12-06 19:29:04 +07:00
commit 04a48286e6
10 changed files with 155 additions and 7 deletions

View 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