From ced0a9ab74f1c7563c0618c338c85a358e21ff5d Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Sat, 2 Nov 2013 21:11:43 +0000 Subject: Don't set widgets if you're not a local user. --- mod/connections.php | 3 +++ mod/message.php | 3 +++ mod/settings.php | 2 ++ 3 files changed, 8 insertions(+) (limited to 'mod') 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 -- cgit v1.2.3