1
0
Fork 0

New function to delete items for users

This commit is contained in:
Michael 2018-05-29 05:22:57 +00:00
commit 8329705eba
11 changed files with 53 additions and 55 deletions

View file

@ -321,7 +321,7 @@ function drop_items($items) {
if (count($items)) {
foreach ($items as $item) {
$owner = Item::deleteById($item, PRIORITY_HIGH, local_user());
$owner = Item::deleteForUser(['id' => $item], local_user());
if ($owner && !$uid)
$uid = $owner;
}
@ -393,7 +393,7 @@ function drop_item($id) {
}
// delete the item
Item::deleteById($item['id'], PRIORITY_HIGH, local_user());
Item::deleteForUser(['id' => $item['id']], local_user());
goaway(System::baseUrl() . '/' . $_SESSION['return_url']);
//NOTREACHED