Enable unfollowing contacts from all networks (but Statusnet)

This commit is contained in:
Hypolite Petovan 2018-08-30 08:52:15 -04:00
parent e480da788e
commit b81eaec885
2 changed files with 19 additions and 12 deletions

View file

@ -595,7 +595,7 @@ function contacts_content(App $a, $update = 0)
/// @todo Only show the following link with DFRN when the remote version supports it
$follow = '';
$follow_text = '';
if (in_array($contact['network'], [Protocol::DIASPORA, Protocol::OSTATUS, Protocol::DFRN])) {
if ($contact['network'] != Protocol::STATUSNET) {
if (in_array($contact['rel'], [Contact::FRIEND, Contact::SHARING])) {
$follow = System::baseUrl(true) . "/unfollow?url=" . urlencode($contact["url"]);
$follow_text = L10n::t("Disconnect/Unfollow");