From e8c39ff49fdb12461b375db8ab6591ced646f613 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Thu, 9 Sep 2010 05:25:01 -0700 Subject: found the missing comment box bug --- include/poller.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'include/poller.php') diff --git a/include/poller.php b/include/poller.php index 1e0d61337..62bfdf8e3 100644 --- a/include/poller.php +++ b/include/poller.php @@ -1,5 +1,6 @@ get_item_tags( NAMESPACE_DFRN, 'comment-allow'); if($allow && $allow[0]['data'] != $r[0]['last-child']) { - $r = q("UPDATE `item` SET `last-child` = 0, `changed` = '%s' WHERE `parent-uri` = '%s'", + $r = q("UPDATE `item` SET `last-child` = 0, `changed` = '%s' WHERE `parent-uri` = '%s' AND `uid` = %d", dbesc(datetime_convert()), - dbesc($parent_uri) + dbesc($parent_uri), + intval($importer['uid']) ); $r = q("UPDATE `item` SET `last-child` = %d , `changed` = '%s' WHERE `uri` = '%s' AND `uid` = %d LIMIT 1", intval($allow[0]['data']), -- cgit v1.2.3