mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
Fix notification warnings
This commit is contained in:
parent
2301de3d75
commit
6193157f19
1 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,11 @@ defmodule Pleroma.Workers.WebPusherWorker do
|
||||||
|
|
||||||
@impl Oban.Worker
|
@impl Oban.Worker
|
||||||
def perform(%{"op" => "web_push", "notification_id" => notification_id}, _job) do
|
def perform(%{"op" => "web_push", "notification_id" => notification_id}, _job) do
|
||||||
notification = Repo.get(Notification, notification_id)
|
notification =
|
||||||
|
Notification
|
||||||
|
|> Repo.get(notification_id)
|
||||||
|
|> Repo.preload([:activity])
|
||||||
|
|
||||||
Pleroma.Web.Push.Impl.perform(notification)
|
Pleroma.Web.Push.Impl.perform(notification)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue