]> git.mxchange.org Git - friendica.git/commitdiff
Suppress notice messages related to the VCard::getHTML call in mod/display
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 2 Dec 2021 14:45:32 +0000 (09:45 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 2 Dec 2021 14:45:32 +0000 (09:45 -0500)
- Address https://soc.schuerz.at/display/4edd2508-6661-a8d1-f168-b2a245440386

mod/display.php
src/Content/Widget/VCard.php

index b87e075488c290391afdf41638020038b3ec983b..3181d5b450a29d7ca75940a10724a0b17e5b7dd2 100644 (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' => '',
index 38b75272f52e0daeb8899ba34531ae1cdcfca595..81a1d0cf7acc98ca4a26a90c3a32b4486f096d00 100644 (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) {