aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-08 05:08:10 -0800
committerFriendika <info@friendika.com>2011-02-08 05:08:10 -0800
commit9a1e5aaf09c1b940f4615f7dc2999e16b019ab18 (patch)
tree36902abc509c4dbf6abc27fb5ba7997ee921f437
parentd8cd693f1149dc2fb14a7527553b45e8a3b1b62f (diff)
downloadvolse-hubzilla-9a1e5aaf09c1b940f4615f7dc2999e16b019ab18.tar.gz
volse-hubzilla-9a1e5aaf09c1b940f4615f7dc2999e16b019ab18.tar.bz2
volse-hubzilla-9a1e5aaf09c1b940f4615f7dc2999e16b019ab18.zip
tweaks to reworked remote deletion, which also fixes some comment box oddities
-rw-r--r--include/items.php4
-rw-r--r--mod/dfrn_notify.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index 5185e74dc..cffd13a01 100644
--- a/include/items.php
+++ b/include/items.php
@@ -1058,7 +1058,7 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0) {
$item = $r[0];
if(! $item['deleted'])
- logger('dfrn_notify: deleting item ' . $item['id'] . ' uri=' . $item['uri'], LOGGER_DEBUG);
+ logger('consume_feed: deleting item ' . $item['id'] . ' uri=' . $item['uri'], LOGGER_DEBUG);
if($item['uri'] == $item['parent-uri']) {
$r = q("UPDATE `item` SET `deleted` = 1, `edited` = '%s', `changed` = '%s',
@@ -1081,7 +1081,7 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0) {
);
if($item['last-child']) {
// ensure that last-child is set in case the comment that had it just got wiped.
- $q("UPDATE `item` SET `last-child` = 0, `changed` = '%s' WHERE `parent-uri` = '%s' AND `uid` = %d ",
+ q("UPDATE `item` SET `last-child` = 0, `changed` = '%s' WHERE `parent-uri` = '%s' AND `uid` = %d ",
dbesc(datetime_convert()),
dbesc($item['parent-uri']),
intval($item['uid'])
diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php
index cd0f58753..dffbb5974 100644
--- a/mod/dfrn_notify.php
+++ b/mod/dfrn_notify.php
@@ -246,7 +246,7 @@ function dfrn_notify_post(&$a) {
);
if($item['last-child']) {
// ensure that last-child is set in case the comment that had it just got wiped.
- $q("UPDATE `item` SET `last-child` = 0, `changed` = '%s' WHERE `parent-uri` = '%s' AND `uid` = %d ",
+ q("UPDATE `item` SET `last-child` = 0, `changed` = '%s' WHERE `parent-uri` = '%s' AND `uid` = %d ",
dbesc(datetime_convert()),
dbesc($item['parent-uri']),
intval($item['uid'])