The email must be sent with the user of the notification so that the embedded content...
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 11 Sep 2024 09:46:55 +0000 (11:46 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Wed, 11 Sep 2024 09:46:55 +0000 (11:46 +0200)
wcfsetup/install/files/lib/system/background/job/NotificationEmailDeliveryBackgroundJob.class.php

index f74d5a2e50a6fa369c45723d6f9a484d84937564..7afd15a335eb909ce909c8b24783bd69e20bfbcc 100644 (file)
@@ -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();
     }
 }