diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-08-17 18:56:33 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-08-17 18:56:33 -0700 |
commit | 6ed5b642a437a86077093391f3f2ec9889068d8d (patch) | |
tree | 2a6827a13fc33c9c9822412fab147bca74bd34e3 /mod | |
parent | 1a1f9b296c163af850d68babfb844e617f154875 (diff) | |
download | volse-hubzilla-6ed5b642a437a86077093391f3f2ec9889068d8d.tar.gz volse-hubzilla-6ed5b642a437a86077093391f3f2ec9889068d8d.tar.bz2 volse-hubzilla-6ed5b642a437a86077093391f3f2ec9889068d8d.zip |
item delete -> nuke contents
Diffstat (limited to 'mod')
-rw-r--r-- | mod/item.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php index bd0358ea6..c658a871d 100644 --- a/mod/item.php +++ b/mod/item.php @@ -277,7 +277,7 @@ function item_content(&$a) { // 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()), 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($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 ", dbesc(datetime_convert()), dbesc($item['parent-uri']), @@ -313,7 +313,7 @@ function item_content(&$a) { // send the notification upstream/downstream as the case may be proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"drop\" \"$drop_id\" &", - array(),$foo)); + array(), $foo)); goaway($a->get_baseurl() . '/' . $_SESSION['return_url']); return; //NOTREACHED |