From e7d87d35240c154387a41d60abb4a676ea0e6d28 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 2 Dec 2021 09:45:32 -0500 Subject: [PATCH] Suppress notice messages related to the VCard::getHTML call in mod/display - Address https://soc.schuerz.at/display/4edd2508-6661-a8d1-f168-b2a245440386 --- mod/display.php | 2 +- src/Content/Widget/VCard.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/display.php b/mod/display.php index b87e075488..3181d5b450 100644 --- a/mod/display.php +++ b/mod/display.php @@ -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' => '', diff --git a/src/Content/Widget/VCard.php b/src/Content/Widget/VCard.php index 38b75272f5..81a1d0cf7a 100644 --- a/src/Content/Widget/VCard.php +++ b/src/Content/Widget/VCard.php @@ -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) {