mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 18:10:15 +00:00
[mailstream] Include BB code as plaintext
This commit is contained in:
parent
a34110c60e
commit
28ea869990
1 changed files with 1 additions and 0 deletions
|
@ -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, [
|
||||
|
|
Loading…
Reference in a new issue