Merge https://github.com/friendica/red into zpull
This commit is contained in:
commit
739ea78905
@ -4056,12 +4056,20 @@ function drop_item($id,$interactive = true) {
|
|||||||
|
|
||||||
// delete the item
|
// delete the item
|
||||||
|
|
||||||
$r = q("UPDATE `item` SET `deleted` = 1, `title` = '', `body` = '', `edited` = '%s', `changed` = '%s' WHERE `id` = %d LIMIT 1",
|
$r = q(" UPDATE `item` SET
|
||||||
dbesc(datetime_convert()),
|
`item_restrict` = (item_restrict|%d) ,
|
||||||
dbesc(datetime_convert()),
|
`title` = '',
|
||||||
intval($item['id'])
|
`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
|
// clean up categories and tags so they don't end up as orphans
|
||||||
|
|
||||||
$matches = false;
|
$matches = false;
|
||||||
|
Reference in New Issue
Block a user