]> git.mxchange.org Git - friendica-addons.git/commitdiff
Return values
authorMichael <heluecht@pirati.ca>
Tue, 29 May 2018 12:36:44 +0000 (12:36 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 29 May 2018 12:36:44 +0000 (12:36 +0000)
pumpio/pumpio.php

index b45e767017f366caf91492b1505a9479d8061dc3..2da35abc952420b76628fa300a020d7390d63a95 100644 (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) {