From 28ea8699902291196fc1301713ca0d085f09ec23 Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Sat, 28 Sep 2019 09:58:24 +0200 Subject: [PATCH] [mailstream] Include BB code as plaintext --- mailstream/mailstream.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mailstream/mailstream.php b/mailstream/mailstream.php index 89aadbc2..32d02138 100644 --- a/mailstream/mailstream.php +++ b/mailstream/mailstream.php @@ -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, [ -- 2.39.5