aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Prezkuta <fermion@gmx.com>2012-07-05 20:07:01 -0600
committerZach Prezkuta <fermion@gmx.com>2012-07-05 20:07:01 -0600
commit5395cf5bd9b4e9705f989b4f9ca138ae16d18906 (patch)
tree4b2cac2105d2cda3e00e7286fe67a76e10c6d126
parent854abcf61290e14acb148e719ff05e5460e79874 (diff)
downloadvolse-hubzilla-5395cf5bd9b4e9705f989b4f9ca138ae16d18906.tar.gz
volse-hubzilla-5395cf5bd9b4e9705f989b4f9ca138ae16d18906.tar.bz2
volse-hubzilla-5395cf5bd9b4e9705f989b4f9ca138ae16d18906.zip
clear title and body of items on local delete
-rwxr-xr-xinclude/items.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index f5821961b..cf903ac13 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2271,7 +2271,8 @@ function local_delivery($importer,$data) {
}
if($item['uri'] == $item['parent-uri']) {
- $r = q("UPDATE `item` SET `deleted` = 1, `edited` = '%s', `changed` = '%s'
+ $r = q("UPDATE `item` SET `deleted` = 1, `edited` = '%s', `changed` = '%s',
+ `body` = '', `title` = ''
WHERE `parent-uri` = '%s' AND `uid` = %d",
dbesc($when),
dbesc(datetime_convert()),
@@ -2280,7 +2281,8 @@ function local_delivery($importer,$data) {
);
}
else {
- $r = q("UPDATE `item` SET `deleted` = 1, `edited` = '%s', `changed` = '%s'
+ $r = q("UPDATE `item` SET `deleted` = 1, `edited` = '%s', `changed` = '%s',
+ `body` = '', `title` = ''
WHERE `uri` = '%s' AND `uid` = %d LIMIT 1",
dbesc($when),
dbesc(datetime_convert()),