mirror of
https://github.com/friendica/friendica
synced 2025-04-29 02:24:22 +02:00
Don't fetch sugestions for the system user / catch error on contact timeline
This commit is contained in:
parent
146f874c2e
commit
1d00947bcd
2 changed files with 10 additions and 1 deletions
|
@ -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 = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue