From: Steven Fuchs Date: Tue, 17 Sep 2019 18:12:27 +0000 (+0000) Subject: Fix notification warnings X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=6193157f1998b10ac6cb9f4d36dd863eced81b37;p=akkoma Fix notification warnings --- diff --git a/lib/pleroma/workers/web_pusher_worker.ex b/lib/pleroma/workers/web_pusher_worker.ex index bea2baffb..61b451e3e 100644 --- a/lib/pleroma/workers/web_pusher_worker.ex +++ b/lib/pleroma/workers/web_pusher_worker.ex @@ -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