$ret = api_statuses_show($type);
- Item::deleteById($id);
+ Item::deleteById($id, PRIORITY_HIGH, api_user());
return $ret;
}
if (!DBM::is_result($photo_item)) {
throw new InternalServerErrorException("problem with deleting items occured");
}
- Item::deleteById($photo_item[0]['id']);
+ Item::deleteById($photo_item[0]['id'], PRIORITY_HIGH, api_user());
}
// now let's delete all photos from the album
}
// function for setting the items to "deleted = 1" which ensures that comments, likes etc. are not shown anymore
// to the user and the contacts of the users (drop_items() do all the necessary magic to avoid orphans in database and federate deletion)
- Item::deleteById($photo_item[0]['id']);
+ Item::deleteById($photo_item[0]['id'], PRIORITY_HIGH, api_user());
$answer = ['result' => 'deleted', 'message' => 'photo with id `' . $photo_id . '` has been deleted from server.'];
return api_format_data("photo_delete", $type, ['$result' => $answer]);
if (count($items)) {
foreach ($items as $item) {
- $owner = Item::deleteById($item);
+ $owner = Item::deleteById($item, PRIORITY_HIGH, local_user());
if ($owner && !$uid)
$uid = $owner;
}
}
// delete the item
- Item::deleteById($item['id']);
+ Item::deleteById($item['id'], PRIORITY_HIGH, local_user());
goaway(System::baseUrl() . '/' . $_SESSION['return_url']);
//NOTREACHED
// Delete only real events (no birthdays)
if (DBM::is_result($ev) && $ev[0]['type'] == 'event') {
- $del = Item::deleteById($ev[0]['itemid']);
+ $del = Item::deleteById($ev[0]['itemid'], PRIORITY_HIGH, local_user());
}
if ($del == 0) {
$o = '';
if (($a->argc == 3) && ($a->argv[1] === 'drop') && intval($a->argv[2])) {
if (is_ajax()) {
- $o = Item::deleteById($a->argv[2]);
+ $o = Item::deleteById($a->argv[2], PRIORITY_HIGH, local_user());
} else {
$o = drop_item($a->argv[2]);
}
);
if (DBM::is_result($r)) {
foreach ($r as $rr) {
- Item::deleteById($rr['id']);
+ Item::deleteById($rr['id'], PRIORITY_HIGH, $page_owner_uid);
}
}
intval($page_owner_uid)
);
if (DBM::is_result($i)) {
- Item::deleteById($i[0]['id']);
+ Item::deleteById($i[0]['id'], PRIORITY_HIGH, $page_owner_uid);
// Update the photo albums cache
Photo::clearAlbumCache($page_owner_uid);
);
if (DBM::is_result($i)) {
- Item::deleteById($i[0]['id']);
+ Item::deleteById($i[0]['id'], PRIORITY_HIGH, local_user());
}
}