mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
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:
parent
a53add06f2
commit
e7d87d3524
2 changed files with 2 additions and 2 deletions
|
@ -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' => '',
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue