From 7585b58d28978837a89f3a541c8b508dd04a92bc Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 20 Sep 2013 18:24:11 -0700 Subject: when it's a contentious issue, make it an option. --- mod/chanview.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mod/chanview.php b/mod/chanview.php index 4f7638846..f183fbdf1 100644 --- a/mod/chanview.php +++ b/mod/chanview.php @@ -79,16 +79,20 @@ function chanview_content(&$a) { return; } - if($xchan['xchan_hash']) - $a->set_widget('vcard',vcard_from_xchan($xchan,$observer,'chanview')); - $url = (($observer) ? z_root() . '/magic?f=&dest=' . $xchan['xchan_url'] . '&addr=' . $xchan['xchan_addr'] : $xchan['xchan_url'] ); - + // let somebody over-ride the iframed viewport presentation + + if(local_user() && get_pconfig(local_user(),'system','chanview_full')) + goaway($url); + + if($xchan['xchan_hash']) + $a->set_widget('vcard',vcard_from_xchan($xchan,$observer,'chanview')); + $o = replace_macros(get_markup_template('chanview.tpl'),array( '$url' => $url, '$full' => t('toggle full screen mode') -- cgit v1.2.3