The "connect" link ar the display page now directs to the new "follow" page as well.
This commit is contained in:
parent
015ebd7d1b
commit
ccbac6874b
|
@ -193,11 +193,13 @@ function display_fetchauthor($a, $item) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (local_user()) {
|
if (local_user()) {
|
||||||
if ($profiledata["network"] == NETWORK_DFRN) {
|
if (in_array($profiledata["network"], array(NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS)))
|
||||||
$connect = str_replace("/profile/", "/dfrn_request/", $profiledata["url"])."&addr=".bin2hex($a->get_baseurl()."/profile/".$a->user["nickname"]);
|
$profiledata["remoteconnect"] = $a->get_baseurl()."/follow?url=".urlencode($profiledata["url"]);
|
||||||
$profiledata["remoteconnect"] = $connect;
|
//if ($profiledata["network"] == NETWORK_DFRN) {
|
||||||
} elseif ($profiledata["network"] == NETWORK_DIASPORA)
|
// $connect = str_replace("/profile/", "/dfrn_request/", $profiledata["url"])."&addr=".bin2hex($a->get_baseurl()."/profile/".$a->user["nickname"]);
|
||||||
$profiledata["remoteconnect"] = $a->get_baseurl()."/contacts?add=".GetProfileUsername($profiledata["url"], "", true);
|
// $profiledata["remoteconnect"] = $connect;
|
||||||
|
//} elseif ($profiledata["network"] == NETWORK_DIASPORA)
|
||||||
|
// $profiledata["remoteconnect"] = $a->get_baseurl()."/contacts?add=".GetProfileUsername($profiledata["url"], "", true);
|
||||||
} elseif ($profiledata["network"] == NETWORK_DFRN) {
|
} elseif ($profiledata["network"] == NETWORK_DFRN) {
|
||||||
$connect = str_replace("/profile/", "/dfrn_request/", $profiledata["url"]);
|
$connect = str_replace("/profile/", "/dfrn_request/", $profiledata["url"]);
|
||||||
$profiledata["remoteconnect"] = $connect;
|
$profiledata["remoteconnect"] = $connect;
|
||||||
|
|
Loading…
Reference in a new issue