From: Philipp Date: Sun, 2 Jan 2022 22:05:12 +0000 (+0100) Subject: Fix empty accounts[] bug X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9c8d9e83acf08135af42d40bcc9c0a1be9764a3c;p=friendica.git Fix empty accounts[] bug --- diff --git a/src/Module/Api/Mastodon/Accounts/Following.php b/src/Module/Api/Mastodon/Accounts/Following.php index 5176a08cda..8e05a9b717 100644 --- a/src/Module/Api/Mastodon/Accounts/Following.php +++ b/src/Module/Api/Mastodon/Accounts/Following.php @@ -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']);