Merge pull request #1346 from mexon/mat/mailstream-media

mailstream includes post media in message body
This commit is contained in:
Hypolite Petovan 2023-01-08 08:24:12 -05:00 committed by GitHub
commit cf29d2d495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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');
$item['body'] = Post\Media::addAttachmentsToBody($item['uri-id'], $item['body']);
$attachments = [];
mailstream_do_images($item, $attachments);
$frommail = DI::config()->get('mailstream', 'frommail');