aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-13 19:27:52 -0700
committerfriendica <info@friendica.com>2012-03-13 19:27:52 -0700
commitde017d1ed76500c01fd11c8e1d36cf4ebd70172d (patch)
tree6f0412fba9934257465217c9cae283b626d7fb70
parentbe48fff1570aa1d04e049a6fd1665f4fc9634a62 (diff)
downloadvolse-hubzilla-de017d1ed76500c01fd11c8e1d36cf4ebd70172d.tar.gz
volse-hubzilla-de017d1ed76500c01fd11c8e1d36cf4ebd70172d.tar.bz2
volse-hubzilla-de017d1ed76500c01fd11c8e1d36cf4ebd70172d.zip
sort inbox by recently replied conversations first
-rwxr-xr-xmod/message.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/message.php b/mod/message.php
index 37f92e8d9..65f692f3d 100755
--- a/mod/message.php
+++ b/mod/message.php
@@ -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']),