1
0
Fork 0

Merge pull request #7262 from MrPetovan/bug/6410-normalize-message-button

Restore show_connect flag in Model\Profile::sidebar
This commit is contained in:
Philipp 2019-06-13 12:34:16 +02:00 committed by GitHub
commit 41edbfd24a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -343,7 +343,7 @@ class Profile
|| in_array($profile_contact['rel'] ?? 0, [Contact::FOLLOWER, Contact::FRIEND]);
$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) {
$follow_link = 'dfrn_request/' . $profile['nickname'];
} elseif ($profile_is_native) {