mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:45:16 +02:00
Fix fallback on unknown contact
This commit is contained in:
parent
caf548e1a7
commit
b8682190de
6 changed files with 9 additions and 9 deletions
|
@ -164,7 +164,7 @@ function display_fetchauthor($a, $item)
|
|||
$profiledata["about"] = "";
|
||||
}
|
||||
|
||||
$profiledata = array_merge($profiledata, Contact::getByURLForUser($profiledata["url"], local_user()));
|
||||
$profiledata = Contact::getByURLForUser($profiledata["url"], local_user()) ?: $profiledata;
|
||||
|
||||
if (!empty($profiledata["photo"])) {
|
||||
$profiledata["photo"] = DI::baseUrl()->remove($profiledata["photo"]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue