item delete -> nuke contents
This commit is contained in:
parent
1a1f9b296c
commit
6ed5b642a4
1 changed files with 3 additions and 3 deletions
|
@ -277,7 +277,7 @@ function item_content(&$a) {
|
||||||
|
|
||||||
// delete the item
|
// delete the item
|
||||||
|
|
||||||
$r = q("UPDATE `item` SET `deleted` = 1, `edited` = '%s' WHERE `id` = %d LIMIT 1",
|
$r = q("UPDATE `item` SET `deleted` = 1, `body` = '', `edited` = '%s' WHERE `id` = %d LIMIT 1",
|
||||||
dbesc(datetime_convert()),
|
dbesc(datetime_convert()),
|
||||||
intval($item['id'])
|
intval($item['id'])
|
||||||
);
|
);
|
||||||
|
@ -298,7 +298,7 @@ function item_content(&$a) {
|
||||||
// If it's the parent of a comment thread, kill all the kids
|
// If it's the parent of a comment thread, kill all the kids
|
||||||
|
|
||||||
if($item['uri'] == $item['parent-uri']) {
|
if($item['uri'] == $item['parent-uri']) {
|
||||||
$r = q("UPDATE `item` SET `deleted` = 1, `edited` = '%s'
|
$r = q("UPDATE `item` SET `deleted` = 1, `edited` = '%s', `body` = ''
|
||||||
WHERE `parent-uri` = '%s' AND `uid` = %d ",
|
WHERE `parent-uri` = '%s' AND `uid` = %d ",
|
||||||
dbesc(datetime_convert()),
|
dbesc(datetime_convert()),
|
||||||
dbesc($item['parent-uri']),
|
dbesc($item['parent-uri']),
|
||||||
|
|
Loading…
Reference in a new issue