https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c6e305
)
Restore show_connect flag in Model\Profile::sidebar
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Thu, 13 Jun 2019 07:26:42 +0000
(
03:26
-0400)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Thu, 13 Jun 2019 07:26:42 +0000
(
03:26
-0400)
src/Model/Profile.php
patch
|
blob
|
history
diff --git
a/src/Model/Profile.php
b/src/Model/Profile.php
index
868cc6b
..
62d5679
100644
(file)
--- a/
src/Model/Profile.php
+++ b/
src/Model/Profile.php
@@
-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) {