aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-05 19:14:27 -0700
committerfriendica <info@friendica.com>2012-07-05 19:14:27 -0700
commita71365d5665fd3ed51ea9bd44b9a4571e6d3ad69 (patch)
tree4b2cac2105d2cda3e00e7286fe67a76e10c6d126
parent854abcf61290e14acb148e719ff05e5460e79874 (diff)
parent5395cf5bd9b4e9705f989b4f9ca138ae16d18906 (diff)
downloadvolse-hubzilla-a71365d5665fd3ed51ea9bd44b9a4571e6d3ad69.tar.gz
volse-hubzilla-a71365d5665fd3ed51ea9bd44b9a4571e6d3ad69.tar.bz2
volse-hubzilla-a71365d5665fd3ed51ea9bd44b9a4571e6d3ad69.zip
Merge pull request #377 from fermionic/local-delete-blank-out-title-and-body
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()),