Fix fatal error for unknown contact ids

This commit is contained in:
Michael 2024-07-16 18:15:30 +00:00
parent fca67b3fcb
commit bce4539ff3

View file

@ -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);
}