mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:15:13 +00:00
set isnomadic before accessing
This commit is contained in:
parent
3615a857d8
commit
967a0aa92d
1 changed files with 5 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue