]> git.mxchange.org Git - friendica.git/commitdiff
Mail: Set the "reply" value when it is a reply
authorMichael <heluecht@pirati.ca>
Thu, 9 May 2019 20:52:52 +0000 (20:52 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 9 May 2019 20:52:52 +0000 (20:52 +0000)
src/Model/Mail.php

index 4d5c1946b3c9e72a404e1a8d93cb57ea8c0e87db..a9e57812ac6f07fe82776c578dfa77baabdc9f8d 100644 (file)
@@ -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)) {