aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/push
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-09-15 20:22:17 +0000
committerrinpatch <rinpatch@sdf.org>2019-09-15 20:22:17 +0000
commit2990c0a53b14646eab19b57d068ac8aa7e17ea4e (patch)
tree7681ac3405657948a062c396b70bb2f275e91238 /lib/pleroma/web/push
parent9c64a25713790fefa8b5c419aeadf55113c17073 (diff)
parent3b8ec98b0e3b3fb2bd333f3be724676c4821366f (diff)
downloadpleroma-2990c0a53b14646eab19b57d068ac8aa7e17ea4e.tar.gz
Merge branch '1149-oban-job-queue' into 'develop'
[#1149] `oban`-based job & retry queues Closes #1149 See merge request pleroma/pleroma!1518
Diffstat (limited to 'lib/pleroma/web/push')
-rw-r--r--lib/pleroma/web/push/push.ex7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/pleroma/web/push/push.ex b/lib/pleroma/web/push/push.ex
index 729dad02a..7ef1532ac 100644
--- a/lib/pleroma/web/push/push.ex
+++ b/lib/pleroma/web/push/push.ex
@@ -3,7 +3,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Push do
- alias Pleroma.Web.Push.Impl
+ alias Pleroma.Workers.WebPusherWorker
require Logger
@@ -31,6 +31,7 @@ defmodule Pleroma.Web.Push do
end
end
- def send(notification),
- do: PleromaJobQueue.enqueue(:web_push, Impl, [notification])
+ def send(notification) do
+ WebPusherWorker.enqueue("web_push", %{"notification_id" => notification.id})
+ end
end