]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/EMail/ItemCCEMail.php
Merge pull request #11503 from annando/bulk-delivery
[friendica.git] / src / Object / EMail / ItemCCEMail.php
index 1fa2e94d773b1b131e384cb8dd10875d368f7f3d..5ac8b990968b2d03ada6c75104e7a7018f6211f5 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -37,7 +37,7 @@ class ItemCCEMail extends Email
 {
        public function __construct(App $a, L10n $l10n, BaseURL $baseUrl, array $item, string $toAddress, string $authorThumb)
        {
-               $user = User::getById($a->getUserId());
+               $user = User::getById($a->getLoggedInUserId());
 
                $disclaimer = '<hr />' . $l10n->t('This message was sent to you by %s, a member of the Friendica social network.', $user['username'])
                              . '<br />';