Browse Source

Merge branch 'fix-notification-warnings' into 'develop'

Fix notification warnings

See merge request pleroma/pleroma!1683
object-id-column
rinpatch 4 years ago
parent
commit
7318095657
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      lib/pleroma/workers/web_pusher_worker.ex

+ 5
- 1
lib/pleroma/workers/web_pusher_worker.ex View File

@@ -10,7 +10,11 @@ defmodule Pleroma.Workers.WebPusherWorker do

@impl Oban.Worker
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)
end
end

Loading…
Cancel
Save