aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-23 16:07:56 -0800
committerfriendica <info@friendica.com>2013-01-23 16:07:56 -0800
commit739ea78905a3d7707b747ca73874c3c2a73aca71 (patch)
tree6c0059abaae568f64235c9cb16bd471d135e829e
parentf63997f61877bf03b9c85cbfaa00b8300c8cb770 (diff)
parent5206a8daf782f77ee9cfa48aaa6bc5119fef6d66 (diff)
downloadvolse-hubzilla-739ea78905a3d7707b747ca73874c3c2a73aca71.tar.gz
volse-hubzilla-739ea78905a3d7707b747ca73874c3c2a73aca71.tar.bz2
volse-hubzilla-739ea78905a3d7707b747ca73874c3c2a73aca71.zip
Merge https://github.com/friendica/red into zpull
-rwxr-xr-xinclude/items.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/include/items.php b/include/items.php
index 9ab39d7ae..4832c2916 100755
--- a/include/items.php
+++ b/include/items.php
@@ -4056,12 +4056,20 @@ function drop_item($id,$interactive = true) {
// delete the item
- $r = q("UPDATE `item` SET `deleted` = 1, `title` = '', `body` = '', `edited` = '%s', `changed` = '%s' WHERE `id` = %d LIMIT 1",
- dbesc(datetime_convert()),
- dbesc(datetime_convert()),
- intval($item['id'])
+ $r = q(" UPDATE `item` SET
+ `item_restrict` = (item_restrict|%d) ,
+ `title` = '',
+ `body` = '',
+ `changed` = '%s',
+ `edited` = '%s' WHERE `id` = %d LIMIT 1",
+ intval(ITEM_DELETED),
+ dbesc(datetime_convert()),
+ dbesc(datetime_convert()),
+ intval($item['id'])
);
+
+
// clean up categories and tags so they don't end up as orphans
$matches = false;