From: Matthew Exon Date: Sun, 8 Jan 2023 11:51:49 +0000 (+0100) Subject: mailstream includes post media in message body X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4352a358a7d345a8c78b85c7f94fcbc1d9fd9128;p=friendica-addons.git mailstream includes post media in message body --- diff --git a/mailstream/mailstream.php b/mailstream/mailstream.php index 35c6aab0..68ec78b9 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');