diff options
author | Friendika <info@friendika.com> | 2011-06-23 17:56:59 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-23 17:56:59 -0700 |
commit | 38cf37d3c3a4bc9873aa12eed5167b356282385f (patch) | |
tree | 346398bcfbb748aa1aa3f0658af020ddb487d946 /mod | |
parent | 2bc4e24da22d7a75bbdbae18e0c64575ff7fe858 (diff) | |
download | volse-hubzilla-38cf37d3c3a4bc9873aa12eed5167b356282385f.tar.gz volse-hubzilla-38cf37d3c3a4bc9873aa12eed5167b356282385f.tar.bz2 volse-hubzilla-38cf37d3c3a4bc9873aa12eed5167b356282385f.zip |
new item view, sort by received date - not posted date.
Diffstat (limited to 'mod')
-rw-r--r-- | mod/item.php | 6 | ||||
-rw-r--r-- | mod/network.php | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php index 22eba7b3f..f87b6074a 100644 --- a/mod/item.php +++ b/mod/item.php @@ -419,6 +419,7 @@ function item_post(&$a) { $datarray['author-avatar'] = $author['thumb']; $datarray['created'] = datetime_convert(); $datarray['edited'] = datetime_convert(); + $datarray['received'] = datetime_convert(); $datarray['changed'] = datetime_convert(); $datarray['uri'] = $uri; $datarray['title'] = $title; @@ -473,9 +474,9 @@ function item_post(&$a) { $r = q("INSERT INTO `item` (`uid`,`type`,`wall`,`gravity`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`, - `author-name`, `author-link`, `author-avatar`, `created`, `edited`, `changed`, `uri`, `title`, `body`, `app`, `location`, `coord`, + `author-name`, `author-link`, `author-avatar`, `created`, `edited`, `received`, `changed`, `uri`, `title`, `body`, `app`, `location`, `coord`, `tag`, `inform`, `verb`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`, `private`, `pubmail`, `attach` ) - VALUES( %d, '%s', %d, %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s' )", + VALUES( %d, '%s', %d, %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s' )", intval($datarray['uid']), dbesc($datarray['type']), intval($datarray['wall']), @@ -489,6 +490,7 @@ function item_post(&$a) { dbesc($datarray['author-avatar']), dbesc($datarray['created']), dbesc($datarray['edited']), + dbesc($datarray['received']), dbesc($datarray['changed']), dbesc($datarray['uri']), dbesc($datarray['title']), diff --git a/mod/network.php b/mod/network.php index 75775ba50..9c5202ad2 100644 --- a/mod/network.php +++ b/mod/network.php @@ -212,7 +212,7 @@ function network_content(&$a, $update = 0) { AND `contact`.`id` = `item`.`contact-id` AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 $sql_extra - ORDER BY `item`.`created` DESC LIMIT %d ,%d ", + ORDER BY `item`.`received` DESC LIMIT %d ,%d ", intval($_SESSION['uid']), intval($a->pager['start']), intval($a->pager['itemspage']) |