From 476302afc51c69135c27ee31bdb72d9cdfe777d9 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 29 May 2018 12:36:44 +0000 Subject: [PATCH] Return values --- pumpio/pumpio.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index b45e7670..2da35abc 100644 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -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) {