]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget/VCard.php
Restructure Cache to follow new paradigm
[friendica.git] / src / Content / Widget / VCard.php
index ffe4759f5ca36e15d1cb2ec32c13e6f6677918c7..38b75272f52e0daeb8899ba34531ae1cdcfca595 100644 (file)
@@ -75,7 +75,7 @@ class VCard
                                $pending = $pcontact['pending'] ?? false;
                        }
 
-                       if (in_array($contact['network'], Protocol::NATIVE_SUPPORT)) {
+                       if (!$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) {
@@ -94,6 +94,7 @@ class VCard
                        '$url'              => Contact::magicLinkByContact($contact, $contact['url']),
                        '$about'            => BBCode::convertForUriId($contact['uri-id'] ?? 0, $contact['about'] ?? ''),
                        '$xmpp'             => DI::l10n()->t('XMPP:'),
+                       '$matrix'           => DI::l10n()->t('Matrix:'),
                        '$location'         => DI::l10n()->t('Location:'),
                        '$network_link'     => $network_link,
                        '$network_avatar'   => $network_avatar,