diff options
author | friendica <info@friendica.com> | 2014-01-22 03:01:28 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-22 03:01:28 -0800 |
commit | 39142002238b416a2d823245cf046ca9eee0bf94 (patch) | |
tree | 566f66e98fbc0db2a844db9a0dd4bcfa0604ab5c /mod/chanview.php | |
parent | 3f49114a05f51b4d7ad11898e75fe512c9a9e774 (diff) | |
download | volse-hubzilla-39142002238b416a2d823245cf046ca9eee0bf94.tar.gz volse-hubzilla-39142002238b416a2d823245cf046ca9eee0bf94.tar.bz2 volse-hubzilla-39142002238b416a2d823245cf046ca9eee0bf94.zip |
simplify chanview authentication and make sure it carries through multiple generations
Diffstat (limited to 'mod/chanview.php')
-rw-r--r-- | mod/chanview.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/mod/chanview.php b/mod/chanview.php index ae22212b9..ca3410c8f 100644 --- a/mod/chanview.php +++ b/mod/chanview.php @@ -78,14 +78,10 @@ function chanview_content(&$a) { return; } - if(is_foreigner($a->poi['xchan_hash'])) - $url = $a->poi['xchan_url']; - else { - $url = (($observer) - ? z_root() . '/magic?f=&dest=' . $a->poi['xchan_url'] . '&addr=' . $a->poi['xchan_addr'] - : $a->poi['xchan_url'] - ); - } + + $url = $a->poi['xchan_url']; + if($observer) + $url = zid($url); // let somebody over-ride the iframed viewport presentation |