]> git.mxchange.org Git - friendica.git/commitdiff
Fix empty accounts[] bug
authorPhilipp <admin@philipp.info>
Sun, 2 Jan 2022 22:05:12 +0000 (23:05 +0100)
committerPhilipp <admin@philipp.info>
Tue, 4 Jan 2022 19:59:27 +0000 (20:59 +0100)
src/Module/Api/Mastodon/Accounts/Following.php

index 5176a08cdae0392e7131375314db14f469d5fada..8e05a9b717baa96adfc2cafc61bb688f27e48776 100644 (file)
@@ -73,6 +73,8 @@ class Following extends BaseApi
                        $params['order'] = ['cid'];
                }
 
+               $accounts = [];
+
                $followers = DBA::select('contact-relation', ['cid'], $condition, $params);
                while ($follower = DBA::fetch($followers)) {
                        self::setBoundaries($follower['cid']);