aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-23 17:56:59 -0700
committerFriendika <info@friendika.com>2011-06-23 17:56:59 -0700
commit38cf37d3c3a4bc9873aa12eed5167b356282385f (patch)
tree346398bcfbb748aa1aa3f0658af020ddb487d946 /mod/item.php
parent2bc4e24da22d7a75bbdbae18e0c64575ff7fe858 (diff)
downloadvolse-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/item.php')
-rw-r--r--mod/item.php6
1 files changed, 4 insertions, 2 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']),