aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.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 /include/items.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 'include/items.php')
-rw-r--r--include/items.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 3901927fc..2a934af3a 100644
--- a/include/items.php
+++ b/include/items.php
@@ -669,6 +669,7 @@ function item_store($arr,$force_parent = false) {
$arr['owner-avatar'] = ((x($arr,'owner-avatar')) ? notags(trim($arr['owner-avatar'])) : '');
$arr['created'] = ((x($arr,'created') !== false) ? datetime_convert('UTC','UTC',$arr['created']) : datetime_convert());
$arr['edited'] = ((x($arr,'edited') !== false) ? datetime_convert('UTC','UTC',$arr['edited']) : datetime_convert());
+ $arr['received'] = datetime_convert();
$arr['changed'] = datetime_convert();
$arr['title'] = ((x($arr,'title')) ? notags(trim($arr['title'])) : '');
$arr['location'] = ((x($arr,'location')) ? notags(trim($arr['location'])) : '');