]> git.mxchange.org Git - friendica-addons.git/commitdiff
[mailstream] Include BB code as plaintext
authorMatthew Exon <git.mexon@spamgourmet.com>
Sat, 28 Sep 2019 07:58:24 +0000 (09:58 +0200)
committerMatthew Exon <git.mexon@spamgourmet.com>
Sat, 28 Sep 2019 09:39:05 +0000 (11:39 +0200)
mailstream/mailstream.php

index 89aadbc2081bc0285caf5dd8b44f3bbc6cd54603..32d021382877784569b890a6ee814c54ae3cf74b 100644 (file)
@@ -299,6 +299,7 @@ function mailstream_send(\Friendica\App $a, $message_id, $item, $user) {
                $mail->IsHTML(true);
                $mail->CharSet = 'utf-8';
                $template = Renderer::getMarkupTemplate('mail.tpl', 'addon/mailstream/');
+               $mail->AltBody = BBCode::toPlaintext($item['body']);
                $item['body'] = BBCode::convert($item['body']);
                $item['url'] = $a->getBaseURL() . '/display/' . $item['guid'];
                $mail->Body = Renderer::replaceMacros($template, [