aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-08 16:18:40 -0800
committerzotlabs <mike@macgirvin.com>2016-12-08 16:18:40 -0800
commit8b57add89151703b163615df177db6f632435ba8 (patch)
tree50eb6a88a6bb8c2398dc73c7d5471c2e19a7ecd3
parent5833bb3bd4b3feff0bfa80563cbbd123b80c8a24 (diff)
downloadvolse-hubzilla-8b57add89151703b163615df177db6f632435ba8.tar.gz
volse-hubzilla-8b57add89151703b163615df177db6f632435ba8.tar.bz2
volse-hubzilla-8b57add89151703b163615df177db6f632435ba8.zip
don't alter received/changed timestamps when editing
-rwxr-xr-xinclude/items.php16
1 files changed, 2 insertions, 14 deletions
diff --git a/include/items.php b/include/items.php
index 0f1334df8..9bd256d58 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2003,20 +2003,8 @@ function item_store_update($arr,$allow_exec = false, $deliver = true) {
$arr['commented'] = $orig[0]['commented'];
- if($deliver) {
- $arr['received'] = datetime_convert();
- $arr['changed'] = datetime_convert();
- }
- else {
-
- // When deliver flag is false, we are *probably* performing an import or bulk migration.
- // If one updates the changed timestamp it will be made available to zotfeed and delivery
- // will still take place through backdoor methods. Since these fields are rarely used
- // otherwise, just preserve the original timestamp.
-
- $arr['received'] = $orig[0]['received'];
- $arr['changed'] = $orig[0]['changed'];
- }
+ $arr['received'] = $orig[0]['received'];
+ $arr['changed'] = $orig[0]['changed'];
$arr['route'] = ((array_key_exists('route',$arr)) ? trim($arr['route']) : $orig[0]['route']);
$arr['diaspora_meta'] = ((x($arr,'diaspora_meta')) ? $arr['diaspora_meta'] : $orig[0]['diaspora_meta']);