From 9c8d9e83acf08135af42d40bcc9c0a1be9764a3c Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 2 Jan 2022 23:05:12 +0100 Subject: [PATCH] Fix empty accounts[] bug --- src/Module/Api/Mastodon/Accounts/Following.php | 2 ++ 1 file changed, 2 insertions(+) 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']);