From 967a0aa92de588be3c065fbd88c08f6e283562e6 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sat, 20 Jul 2024 08:30:57 +1000 Subject: [PATCH] set isnomadic before accessing --- src/Module/Item.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Module/Item.php b/src/Module/Item.php index fd06e4b3f..fedec963c 100644 --- a/src/Module/Item.php +++ b/src/Module/Item.php @@ -300,8 +300,9 @@ class Item extends Controller if (!$chan) { http_status_exit(404, 'Not found'); } - - + + $this->isNomadic = PConfig::Get($chan['channel_id'], 'system', 'nomadicAP'); + if (!perm_is_allowed($chan['channel_id'], get_observer_hash(), 'view_stream')) { http_status_exit(403, 'Forbidden'); } @@ -756,6 +757,8 @@ class Item extends Controller killme(); } + $this->isNomadic = PConfig::Get($channel['channel_id'], 'system', 'nomadicAP'); + $owner_xchan = null; $r = q(