Restore show_connect flag in Model\Profile::sidebar

This commit is contained in:
Hypolite Petovan 2019-06-13 03:26:42 -04:00
parent 6c6e3058f2
commit 5b291abc7f

View file

@ -343,7 +343,7 @@ class Profile
|| in_array($profile_contact['rel'] ?? 0, [Contact::FOLLOWER, Contact::FRIEND]); || in_array($profile_contact['rel'] ?? 0, [Contact::FOLLOWER, Contact::FRIEND]);
$visitor_base_path = self::getMyURL() ? preg_replace('=/profile/(.*)=ism', '', self::getMyURL()) : ''; $visitor_base_path = self::getMyURL() ? preg_replace('=/profile/(.*)=ism', '', self::getMyURL()) : '';
if (!$local_user_is_self) { if (!$local_user_is_self && $show_connect) {
if (!$visitor_is_authenticated) { if (!$visitor_is_authenticated) {
$follow_link = 'dfrn_request/' . $profile['nickname']; $follow_link = 'dfrn_request/' . $profile['nickname'];
} elseif ($profile_is_native) { } elseif ($profile_is_native) {