From: Hank Grabowski Date: Wed, 22 Mar 2023 22:25:32 +0000 (-0400) Subject: Fix other calls to Mail::send to provide ID X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1c4fbc9fdf49b27ead8af2fe6bdc5c145d59cd0c;p=friendica.git Fix other calls to Mail::send to provide ID --- diff --git a/mod/message.php b/mod/message.php index 1e8c012eeb..99fb6b3b41 100644 --- a/mod/message.php +++ b/mod/message.php @@ -69,12 +69,13 @@ function message_post(App $a) return; } + $sender_id = DI::userSession()->getLocalUserId(); $replyto = !empty($_REQUEST['replyto']) ? trim($_REQUEST['replyto']) : ''; $subject = !empty($_REQUEST['subject']) ? trim($_REQUEST['subject']) : ''; $body = !empty($_REQUEST['body']) ? Strings::escapeHtml(trim($_REQUEST['body'])) : ''; $recipient = !empty($_REQUEST['recipient']) ? intval($_REQUEST['recipient']) : 0; - $ret = Mail::send($recipient, $body, $subject, $replyto); + $ret = Mail::send($sender_id, $recipient, $body, $subject, $replyto); $norecip = false; switch ($ret) {