aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-21 20:05:55 -0700
committerfriendica <info@friendica.com>2013-08-21 20:05:55 -0700
commit6cea04eb440c2bb08bcb81ae13749c08d09b755c (patch)
tree1dc49fbb3b0e23afb7a3709fc54383f5b7c39fb8 /boot.php
parent5083aa3cbd9434b7ec63cf5bbbc2122e3da49696 (diff)
downloadvolse-hubzilla-6cea04eb440c2bb08bcb81ae13749c08d09b755c.tar.gz
volse-hubzilla-6cea04eb440c2bb08bcb81ae13749c08d09b755c.tar.bz2
volse-hubzilla-6cea04eb440c2bb08bcb81ae13749c08d09b755c.zip
progress on generic sellpage - is not yet linked from existing connect buttons and editing has not been completed
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/boot.php b/boot.php
index 0afc976ae..3327fdbb2 100755
--- a/boot.php
+++ b/boot.php
@@ -1572,11 +1572,11 @@ function profile_load(&$a, $nickname, $profile = '') {
return;
}
-function profile_create_sidebar(&$a) {
+function profile_create_sidebar(&$a,$connect = true) {
$block = (((get_config('system','block_public')) && (! local_user()) && (! remote_user())) ? true : false);
- $a->set_widget('profile',profile_sidebar($a->profile, $block));
+ $a->set_widget('profile',profile_sidebar($a->profile, $block, $connect));
return;
}
@@ -1598,7 +1598,7 @@ function profile_create_sidebar(&$a) {
-function profile_sidebar($profile, $block = 0) {
+function profile_sidebar($profile, $block = 0, $show_connect = true) {
$a = get_app();
@@ -1623,11 +1623,13 @@ function profile_sidebar($profile, $block = 0) {
require_once('include/Contact.php');
- $connect_url = rconnect_url($profile['uid'],get_observer_hash());
+
+ $connect_url = (($show_connect) ? rconnect_url($profile['uid'],get_observer_hash()) : '');
+
$connect = (($connect_url) ? t('Connect') : '');
if($connect_url)
- $connect_url = $connect_url . '/follow?f=1&url=' . $profile['channel_address'] . '@' . $a->get_hostname();
+ $connect_url = $connect_url . '/follow?f=1&url=' . urlencode($profile['channel_address'] . '@' . $a->get_hostname());
// show edit profile to yourself
if($is_owner) {