]> git.mxchange.org Git - friendica-addons.git/commitdiff
mailstream includes post media in message body
authorMatthew Exon <git.mexon@spamgourmet.com>
Sun, 8 Jan 2023 11:51:49 +0000 (12:51 +0100)
committerMatthew Exon <git.mexon@spamgourmet.com>
Sun, 8 Jan 2023 13:18:28 +0000 (14:18 +0100)
mailstream/mailstream.php

index 35c6aab0dce095fff272d3a4f266d4a5b2807b07..68ec78b99971c6a60e5172e0bef58aff2e223673 100644 (file)
@@ -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');