Merge pull request #12124 from annando/issue-11832

Issue 11832: Avoid error when fetching group members
This commit is contained in:
Tobias Diekershoff 2022-11-06 09:12:22 +01:00 committed by GitHub
commit 174151d4d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,6 @@
namespace Friendica\Module\Api\Mastodon\Lists;
use Friendica\App\Router;
use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\DI;
@ -116,7 +115,10 @@ class Accounts extends BaseApi
$members = DBA::select('group_member', ['contact-id'], $condition, $params);
while ($member = DBA::fetch($members)) {
self::setBoundaries($member['contact-id']);
try {
$accounts[] = DI::mstdnAccount()->createFromContactId($member['contact-id'], $uid);
} catch (\Throwable $th) {
}
}
DBA::close($members);