Don't fetch sugestions for the system user / catch error on contact timeline
This commit is contained in:
@@ -323,6 +323,10 @@ class Relation
|
||||
*/
|
||||
static public function getSuggestions(int $uid, int $start = 0, int $limit = 80): array
|
||||
{
|
||||
if ($uid == 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$cid = Contact::getPublicIdByUserId($uid);
|
||||
$totallimit = $start + $limit;
|
||||
$contacts = [];
|
||||
|
||||
Reference in New Issue
Block a user