]> git.mxchange.org Git - friendica.git/commitdiff
Issue 11832: Avoid error when fetching group members
authorMichael <heluecht@pirati.ca>
Sun, 6 Nov 2022 06:42:33 +0000 (06:42 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 6 Nov 2022 06:42:33 +0000 (06:42 +0000)
src/Module/Api/Mastodon/Lists/Accounts.php

index b964ff9ba3db48c1a1683db1490f6afaba5185f8..345ca4f39d85136043693b562c5970f412f8d63a 100644 (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']);
-                       $accounts[] = DI::mstdnAccount()->createFromContactId($member['contact-id'], $uid);
+                       try {
+                               $accounts[] = DI::mstdnAccount()->createFromContactId($member['contact-id'], $uid);
+                       } catch (\Throwable $th) {
+                       }
                }
                DBA::close($members);