aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2020-09-25 13:47:40 +0200
committerMario Vavti <mario@mariovavti.com>2020-09-25 13:47:40 +0200
commitb25054e891fdb1eb88474a289025cf6d9d1d534c (patch)
treeec58ca14a547e09cff9b5ca5cfd7eccda9a18367 /Zotlabs/Module
parent2c316c788e89ab0d9a64a4a1490c7074d1e5c3da (diff)
downloadvolse-hubzilla-b25054e891fdb1eb88474a289025cf6d9d1d534c.tar.gz
volse-hubzilla-b25054e891fdb1eb88474a289025cf6d9d1d534c.tar.bz2
volse-hubzilla-b25054e891fdb1eb88474a289025cf6d9d1d534c.zip
if we do not have App::$poi here we would already have returned. No need to check here.
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Chanview.php24
1 files changed, 11 insertions, 13 deletions
diff --git a/Zotlabs/Module/Chanview.php b/Zotlabs/Module/Chanview.php
index 1c476d125..06ff10f9e 100644
--- a/Zotlabs/Module/Chanview.php
+++ b/Zotlabs/Module/Chanview.php
@@ -99,19 +99,17 @@ class Chanview extends \Zotlabs\Web\Controller {
$is_zot = false;
$connected = false;
- if (App::$poi) {
- $url = App::$poi['xchan_url'];
- if(in_array(App::$poi['xchan_network'], ['zot', 'zot6'])) {
- $is_zot = true;
- }
- if(local_channel()) {
- $c = q("select abook_id from abook where abook_channel = %d and abook_xchan = '%s' limit 1",
- intval(local_channel()),
- dbesc(App::$poi['xchan_hash'])
- );
- if($c)
- $connected = true;
- }
+ $url = App::$poi['xchan_url'];
+ if(in_array(App::$poi['xchan_network'], ['zot', 'zot6'])) {
+ $is_zot = true;
+ }
+ if(local_channel()) {
+ $c = q("select abook_id from abook where abook_channel = %d and abook_xchan = '%s' limit 1",
+ intval(local_channel()),
+ dbesc(App::$poi['xchan_hash'])
+ );
+ if($c)
+ $connected = true;
}
// We will load the chanview template if it's a foreign network,