mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:00:16 +00:00
Fix fatal error for unknown contact ids
This commit is contained in:
parent
fca67b3fcb
commit
bce4539ff3
1 changed files with 3 additions and 0 deletions
|
@ -3568,6 +3568,9 @@ class Contact
|
|||
}
|
||||
|
||||
$contact = DBA::selectFirst('contact', ['id', 'network', 'url', 'alias', 'uid'], ['id' => $cid]);
|
||||
if (empty($contact)) {
|
||||
return $url;
|
||||
}
|
||||
|
||||
return self::magicLinkByContact($contact, $url);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue