mirror of
https://github.com/friendica/friendica
synced 2024-11-09 16:22:56 +00:00
Fix other calls to Mail::send to provide ID
This commit is contained in:
parent
3d4e11045a
commit
1c4fbc9fdf
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue