From 8e6b3212b01a1674efa9fae692deff2320963bd1 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Wed, 11 Sep 2024 11:46:55 +0200 Subject: [PATCH] The email must be sent with the user of the notification so that the embedded content is displayed correctly. --- .../job/NotificationEmailDeliveryBackgroundJob.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/system/background/job/NotificationEmailDeliveryBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/NotificationEmailDeliveryBackgroundJob.class.php index f74d5a2e50..7afd15a335 100644 --- a/wcfsetup/install/files/lib/system/background/job/NotificationEmailDeliveryBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/NotificationEmailDeliveryBackgroundJob.class.php @@ -160,12 +160,10 @@ class NotificationEmailDeliveryBackgroundJob extends AbstractBackgroundJob return; } + + $this->job->perform(); } finally { SessionHandler::getInstance()->changeUser($user, true); } - - // If none of the checks failed we can send the notification after we switched - // back to the regular user (guest within the context of the queue). - $this->job->perform(); } } -- 2.20.1