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); $shared = Item::getShareArray($item);
if (!empty($shared) && empty($shared['comment'])) { if (!empty($shared) && empty($shared['comment'])) {
$profiledata = [ $profiledata = [
'uid' => -1, 'uid' => 0,
'id' => -1, 'id' => -1,
'nickname' => '', 'nickname' => '',
'name' => '', 'name' => '',

View File

@ -75,7 +75,7 @@ class VCard
$pending = $pcontact['pending'] ?? false; $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])) { if (in_array($rel, [Contact::SHARING, Contact::FRIEND])) {
$unfollow_link = 'unfollow?url=' . urlencode($contact['url']) . '&auto=1'; $unfollow_link = 'unfollow?url=' . urlencode($contact['url']) . '&auto=1';
} elseif (!$pending) { } elseif (!$pending) {