logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 7318095657175ff05a09af83b981110a58026cf9
parent: 2301de3d75fa29d2dd856ae82b73ac564ea27ea0
Author: rinpatch <rinpatch@sdf.org>
Date:   Tue, 17 Sep 2019 18:12:27 +0000

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

Fix notification warnings

See merge request pleroma/pleroma!1683

Diffstat:

Mlib/pleroma/workers/web_pusher_worker.ex6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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