mailstream includes post media in message body

pull/1346/head
Matthew Exon 2023-01-08 12:51:49 +01:00
parent 7827be89c8
commit 4352a358a7
1 changed files with 2 additions and 0 deletions

View File

@ -374,6 +374,8 @@ function mailstream_send(string $message_id, array $item, array $user): bool
require_once (dirname(__file__) . '/phpmailer/class.phpmailer.php'); require_once (dirname(__file__) . '/phpmailer/class.phpmailer.php');
$item['body'] = Post\Media::addAttachmentsToBody($item['uri-id'], $item['body']);
$attachments = []; $attachments = [];
mailstream_do_images($item, $attachments); mailstream_do_images($item, $attachments);
$frommail = DI::config()->get('mailstream', 'frommail'); $frommail = DI::config()->get('mailstream', 'frommail');