]> git.mxchange.org Git - friendica.git/commitdiff
Remove email subject encoding from ItemCCEmail constructor
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 22 Jun 2022 01:12:09 +0000 (21:12 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 22 Jun 2022 01:12:09 +0000 (21:12 -0400)
- It was wrongly re-encoded in Emailer::send

src/Object/EMail/ItemCCEMail.php

index 5ac8b990968b2d03ada6c75104e7a7018f6211f5..927a068d7d9dc902ac352a992ac0046a79184816 100644 (file)
@@ -44,9 +44,9 @@ class ItemCCEMail extends Email
                $disclaimer .= $l10n->t('You may visit them online at %s', $baseUrl . '/profile/' . $a->getLoggedInUserNickname()) . EOL;
                $disclaimer .= $l10n->t('Please contact the sender by replying to this post if you do not wish to receive these messages.') . EOL;
                if (!$item['title'] == '') {
-                       $subject = EmailProtocol::encodeHeader($item['title'], 'UTF-8');
+                       $subject = $item['title'];
                } else {
-                       $subject = EmailProtocol::encodeHeader('[Friendica]' . ' ' . $l10n->t('%s posted an update.', $user['username']), 'UTF-8');
+                       $subject = '[Friendica]' . ' ' . $l10n->t('%s posted an update.', $user['username']);
                }
                $link    = '<a href="' . $baseUrl . '/profile/' . $a->getLoggedInUserNickname() . '"><img src="' . $authorThumb . '" alt="' . $user['username'] . '" /></a><br /><br />';
                $html    = Item::prepareBody($item);