From 4352a358a7d345a8c78b85c7f94fcbc1d9fd9128 Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Sun, 8 Jan 2023 12:51:49 +0100 Subject: [PATCH] mailstream includes post media in message body --- mailstream/mailstream.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mailstream/mailstream.php b/mailstream/mailstream.php index 35c6aab0d..68ec78b99 100644 --- a/mailstream/mailstream.php +++ b/mailstream/mailstream.php @@ -374,6 +374,8 @@ function mailstream_send(string $message_id, array $item, array $user): bool require_once (dirname(__file__) . '/phpmailer/class.phpmailer.php'); + $item['body'] = Post\Media::addAttachmentsToBody($item['uri-id'], $item['body']); + $attachments = []; mailstream_do_images($item, $attachments); $frommail = DI::config()->get('mailstream', 'frommail');