forked from friendica/friendica-addons
Merge pull request #893 from mexon/mat/mailstream-plaintext
[mailstream] Include BB code as plaintext
This commit is contained in:
commit
bed44a389c
|
@ -299,6 +299,7 @@ function mailstream_send(\Friendica\App $a, $message_id, $item, $user) {
|
||||||
$mail->IsHTML(true);
|
$mail->IsHTML(true);
|
||||||
$mail->CharSet = 'utf-8';
|
$mail->CharSet = 'utf-8';
|
||||||
$template = Renderer::getMarkupTemplate('mail.tpl', 'addon/mailstream/');
|
$template = Renderer::getMarkupTemplate('mail.tpl', 'addon/mailstream/');
|
||||||
|
$mail->AltBody = BBCode::toPlaintext($item['body']);
|
||||||
$item['body'] = BBCode::convert($item['body']);
|
$item['body'] = BBCode::convert($item['body']);
|
||||||
$item['url'] = $a->getBaseURL() . '/display/' . $item['guid'];
|
$item['url'] = $a->getBaseURL() . '/display/' . $item['guid'];
|
||||||
$mail->Body = Renderer::replaceMacros($template, [
|
$mail->Body = Renderer::replaceMacros($template, [
|
||||||
|
|
Loading…
Reference in a new issue