]> git.mxchange.org Git - friendica.git/commitdiff
sort inbox by recently replied conversations first
authorfriendica <info@friendica.com>
Wed, 14 Mar 2012 02:27:52 +0000 (19:27 -0700)
committerfriendica <info@friendica.com>
Wed, 14 Mar 2012 02:27:52 +0000 (19:27 -0700)
mod/message.php

index 37f92e8d9d3c903f4986f2163af8c13422e5e4f3..65f692f3d52767adab1837cc4dc6bdef1f39958e 100755 (executable)
@@ -194,7 +194,7 @@ function message_content(&$a) {
                $r = q("SELECT max(`mail`.`created`) AS `mailcreated`, min(`mail`.`seen`) AS `mailseen`, 
                        `mail`.* , `contact`.`name`, `contact`.`url`, `contact`.`thumb` , `contact`.`network`  
                        FROM `mail` LEFT JOIN `contact` ON `mail`.`contact-id` = `contact`.`id` 
-                       WHERE `mail`.`uid` = %d AND `from-url` $eq '%s' GROUP BY `parent-uri` ORDER BY `created` DESC  LIMIT %d , %d ",
+                       WHERE `mail`.`uid` = %d AND `from-url` $eq '%s' GROUP BY `parent-uri` ORDER BY `mailcreated` DESC  LIMIT %d , %d ",
                        intval(local_user()),
                        dbesc($myprofile),
                        intval($a->pager['start']),