Suppress notice messages related to the VCard::getHTML call in mod/display

- Address https://soc.schuerz.at/display/4edd2508-6661-a8d1-f168-b2a245440386
This commit is contained in:
Hypolite Petovan 2021-12-02 09:45:32 -05:00
parent a53add06f2
commit e7d87d3524
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ function display_fetchauthor($item)
$shared = Item::getShareArray($item);
if (!empty($shared) && empty($shared['comment'])) {
$profiledata = [
'uid' => -1,
'uid' => 0,
'id' => -1,
'nickname' => '',
'name' => '',

View file

@ -75,7 +75,7 @@ class VCard
$pending = $pcontact['pending'] ?? false;
}
if (!$contact['self'] && Protocol::supportsFollow($contact['network'])) {
if (empty($contact['self']) && Protocol::supportsFollow($contact['network'])) {
if (in_array($rel, [Contact::SHARING, Contact::FRIEND])) {
$unfollow_link = 'unfollow?url=' . urlencode($contact['url']) . '&auto=1';
} elseif (!$pending) {