aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-11-02 21:11:43 +0000
committerThomas Willingham <founder@kakste.com>2013-11-02 21:11:43 +0000
commitced0a9ab74f1c7563c0618c338c85a358e21ff5d (patch)
tree4f96a0b61bdb8ad1535932dcde2c83227b5f3e6f
parentb95d4c118693df21eabea3e75b258debd334367a (diff)
downloadvolse-hubzilla-ced0a9ab74f1c7563c0618c338c85a358e21ff5d.tar.gz
volse-hubzilla-ced0a9ab74f1c7563c0618c338c85a358e21ff5d.tar.bz2
volse-hubzilla-ced0a9ab74f1c7563c0618c338c85a358e21ff5d.zip
Don't set widgets if you're not a local user.
-rw-r--r--mod/connections.php3
-rw-r--r--mod/message.php3
-rw-r--r--mod/settings.php2
3 files changed, 8 insertions, 0 deletions
diff --git a/mod/connections.php b/mod/connections.php
index bcb78f138..efdf0fd55 100644
--- a/mod/connections.php
+++ b/mod/connections.php
@@ -32,6 +32,9 @@ function connections_init(&$a) {
function connections_aside(&$a) {
+if (! local_user())
+ return;
+
if(x($a->data,'abook')) {
$a->set_widget('vcard',vcard_from_xchan($a->data['abook'],$a->get_observer()));
}
diff --git a/mod/message.php b/mod/message.php
index 1b4c6ae26..bd2545ea5 100644
--- a/mod/message.php
+++ b/mod/message.php
@@ -9,6 +9,9 @@ require_once('include/Contact.php');
function message_aside(&$a) {
+ if (! local_user())
+ return;
+
$a->set_widget('msgaside',replace_macros(get_markup_template('message_side.tpl'), array(
'$tabs'=> array(),
diff --git a/mod/settings.php b/mod/settings.php
index 5f1106be5..ab3ac4f12 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -22,6 +22,8 @@ function settings_init(&$a) {
function settings_aside(&$a) {
+if (! local_user())
+ return;
// default is channel settings in the absence of other arguments