Replace remaining explicit network value checks by Protocol::supportsFollow calls

This commit is contained in:
Hypolite Petovan 2021-10-09 02:10:16 -04:00
parent 5028258c3b
commit b214470b1a
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ class VCard
$pending = $pcontact['pending'] ?? false;
}
if (!$contact['self'] && 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) {