aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-21 22:52:24 -0700
committerzotlabs <mike@macgirvin.com>2018-03-21 22:52:24 -0700
commit1f128e84fb8f407c6bd678b3b2bb25605884cfc5 (patch)
tree1d0b2a700b7eccb57226d6e9620689d9e3754c83 /include/items.php
parent1514b0f4e5c053df60b8873b5411c70be727d227 (diff)
downloadvolse-hubzilla-1f128e84fb8f407c6bd678b3b2bb25605884cfc5.tar.gz
volse-hubzilla-1f128e84fb8f407c6bd678b3b2bb25605884cfc5.tar.bz2
volse-hubzilla-1f128e84fb8f407c6bd678b3b2bb25605884cfc5.zip
Hubzilla issue #1006, fix anonymous comments bump thread before being approved.
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 7faa1b9ec..53d1a3c02 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1977,11 +1977,11 @@ function item_store($arr, $allow_exec = false, $deliver = true) {
*/
call_hooks('post_remote_end', $arr);
- // update the commented timestamp on the parent - unless this is potentially a clone of an older item
+ // update the commented timestamp on the parent - unless this is a moderated comment or a potential clone of an older item
// which we don't wish to bring to the surface. As the queue only holds deliveries for 3 days, it's
// suspected of being an older cloned item if the creation time is older than that.
- if($arr['created'] > datetime_convert('','','now - 4 days')) {
+ if((intval($arr['item_blocked']) != ITEM_MODERATED) || ($arr['created'] > datetime_convert('','','now - 4 days'))) {
$z = q("select max(created) as commented from item where parent_mid = '%s' and uid = %d and item_delayed = 0 ",
dbesc($arr['parent_mid']),
intval($arr['uid'])