1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Workers.WebPusherWorker do
6 alias Pleroma.Notification
9 # Note: `max_attempts` is intended to be overridden in `new/2` call
15 def perform(%{"op" => "web_push", "notification_id" => notification_id}, _job) do
16 notification = Repo.get(Notification, notification_id)
17 Pleroma.Web.Push.Impl.perform(notification)