Changed function that will be private in the future #608

Merged
annando merged 2 commits from delete into 2018.05-rc 2018-05-29 16:00:19 +02:00
Showing only changes of commit 476302afc5 - Show all commits

View file

@ -1044,13 +1044,16 @@ function pumpio_dodelete(&$a, $uid, $self, $post, $own_id) {
// Two queries for speed issues
$condition = ['uri' => $post->object->id, 'uid' => $uid];
if (dba::exists('item', $condition)) {
return Item::delete($condition);
Item::delete($condition);
return true;
}
$condition = ['extid' => $post->object->id, 'uid' => $uid];
if (dba::exists('item', $condition)) {
return Item::delete($condition);
Item::delete($condition);
return true;
}
return false;
}
function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id, $threadcompletion = true) {