Issue 11832: Avoid error when fetching group members
This commit is contained in:
parent
b9f0985467
commit
92813dd2e4
|
@ -21,7 +21,6 @@
|
||||||
|
|
||||||
namespace Friendica\Module\Api\Mastodon\Lists;
|
namespace Friendica\Module\Api\Mastodon\Lists;
|
||||||
|
|
||||||
use Friendica\App\Router;
|
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
|
@ -116,7 +115,10 @@ class Accounts extends BaseApi
|
||||||
$members = DBA::select('group_member', ['contact-id'], $condition, $params);
|
$members = DBA::select('group_member', ['contact-id'], $condition, $params);
|
||||||
while ($member = DBA::fetch($members)) {
|
while ($member = DBA::fetch($members)) {
|
||||||
self::setBoundaries($member['contact-id']);
|
self::setBoundaries($member['contact-id']);
|
||||||
|
try {
|
||||||
$accounts[] = DI::mstdnAccount()->createFromContactId($member['contact-id'], $uid);
|
$accounts[] = DI::mstdnAccount()->createFromContactId($member['contact-id'], $uid);
|
||||||
|
} catch (\Throwable $th) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
DBA::close($members);
|
DBA::close($members);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user