]> git.mxchange.org Git - friendica.git/commitdiff
Fix tests
authorMichael <heluecht@pirati.ca>
Sun, 11 Dec 2022 22:56:56 +0000 (22:56 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 11 Dec 2022 22:56:56 +0000 (22:56 +0000)
src/Module/Api/Twitter/Followers/Ids.php
src/Module/Api/Twitter/Followers/Lists.php
src/Module/Api/Twitter/Friends/Ids.php
src/Module/Api/Twitter/Friends/Lists.php

index 3753a790a5c1e3675fb5806f2dd08017c2858c55..6f89b9ac1f0855ac4b19330f38736054bfc5000f 100644 (file)
@@ -53,6 +53,8 @@ class Ids extends ContactEndpoint
 
                        $condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::FOLLOWER, Contact::FRIEND]];
        
+                       $total_count = (int)DBA::count('contact', $condition);
+
                        if (!empty($max_id)) {
                                $condition = DBA::mergeConditions($condition, ["`pid` < ?", $max_id]);
                        }
index 9983cb4e530122747cbf47a5121025ddc480b103..68bc77b98726cd19ea79aa24ebe6c4aae55ac288 100644 (file)
@@ -53,6 +53,8 @@ class Lists extends ContactEndpoint
 
                        $condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::FOLLOWER, Contact::FRIEND]];
        
+                       $total_count = (int)DBA::count('contact', $condition);
+
                        if (!empty($max_id)) {
                                $condition = DBA::mergeConditions($condition, ["`pid` < ?", $max_id]);
                        }
index 736c78fae26033791b5cefc14503531c6b443937..1d15695d9d0947410c70acdd06c36ce8ca5c5f83 100644 (file)
@@ -53,6 +53,8 @@ class Ids extends ContactEndpoint
 
                        $condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::SHARING, Contact::FRIEND]];
        
+                       $total_count = (int)DBA::count('contact', $condition);
+
                        if (!empty($max_id)) {
                                $condition = DBA::mergeConditions($condition, ["`pid` < ?", $max_id]);
                        }
index 5d8b5bfaca3c49cc8d0ecee8c0b1c43fe0ada557..6a13dbef995f4da3436098e401d53d36132d9cdf 100644 (file)
@@ -53,6 +53,8 @@ class Lists extends ContactEndpoint
 
                        $condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::SHARING, Contact::FRIEND]];
        
+                       $total_count = (int)DBA::count('contact', $condition);
+
                        if (!empty($max_id)) {
                                $condition = DBA::mergeConditions($condition, ["`pid` < ?", $max_id]);
                        }