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
commit b214470b1a
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ function unfollow_content(App $a)
// NOTREACHED
}
if (!in_array($contact['network'], Protocol::NATIVE_SUPPORT)) {
if (!Protocol::supportsFollow($contact['network'])) {
notice(DI::l10n()->t('Unfollowing is currently not supported by your network.'));
DI::baseUrl()->redirect($base_return_path . '/' . $contact['id']);
// NOTREACHED