From: Cyperghost Date: Wed, 11 Sep 2024 09:46:55 +0000 (+0200) Subject: The email must be sent with the user of the notification so that the embedded content... X-Git-Tag: 6.1.0_Beta_2~39^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8e6b3212b01a1674efa9fae692deff2320963bd1;p=GitHub%2FWoltLab%2FWCF.git The email must be sent with the user of the notification so that the embedded content is displayed correctly. --- 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(); } }