mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
Merge pull request #7124 from annando/mail-reply
Mail: Set the "reply" value when it is a reply
This commit is contained in:
commit
860338a675
1 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,10 @@ class Mail
|
|||
{
|
||||
$user = User::getById($msg['uid']);
|
||||
|
||||
if (!isset($msg['reply'])) {
|
||||
$msg['reply'] = DBA::exists('mail', ['parent-uri' => $msg['parent-uri']]);
|
||||
}
|
||||
|
||||
if (empty($msg['convid'])) {
|
||||
$mail = DBA::selectFirst('mail', ['convid'], ["`convid` != 0 AND `parent-uri` = ?", $msg['parent-uri']]);
|
||||
if (DBA::isResult($mail)) {
|
||||
|
|
Loading…
Reference in a new issue