diff --git a/mod/display.php b/mod/display.php index b87e07548..3181d5b45 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 38b75272f..81a1d0cf7 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) {