aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-19 23:38:07 -0700
committerfriendica <info@friendica.com>2013-10-19 23:38:07 -0700
commit784aa1407fe5b6fa1525265dccc4bd40620b9a12 (patch)
tree81717b68b82989cfbedaff2ff9576243f2a56839 /include/items.php
parent4d92cc05c33d935d88526a430ba2cc0445959302 (diff)
downloadvolse-hubzilla-784aa1407fe5b6fa1525265dccc4bd40620b9a12.tar.gz
volse-hubzilla-784aa1407fe5b6fa1525265dccc4bd40620b9a12.tar.bz2
volse-hubzilla-784aa1407fe5b6fa1525265dccc4bd40620b9a12.zip
prevent posts from floating to the top after minor edits
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 2229da5db..18aab93fa 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1817,6 +1817,11 @@ function item_store_update($arr,$allow_exec = false) {
return $ret;
}
+ // override the unseen flag with the original
+
+ if($arr['item_flags'] & ITEM_UNSEEN)
+ $arr['item_flags'] = $arr['item_flags'] ^ ITEM_UNSEEN;
+
if($orig[0]['item_flags'] & ITEM_VERIFIED)
$orig[0]['item_flags'] = $orig[0]['item_flags'] ^ ITEM_VERIFIED;
@@ -1903,7 +1908,7 @@ function item_store_update($arr,$allow_exec = false) {
$arr['edited'] = ((x($arr,'edited') !== false) ? datetime_convert('UTC','UTC',$arr['edited']) : datetime_convert());
$arr['expires'] = ((x($arr,'expires') !== false) ? datetime_convert('UTC','UTC',$arr['expires']) : $orig[0]['expires']);
- $arr['commented'] = datetime_convert();
+ $arr['commented'] = $orig[0]['commented'];
$arr['received'] = datetime_convert();
$arr['changed'] = datetime_convert();
$arr['title'] = ((x($arr,'title')) ? notags(trim($arr['title'])) : '');