nav_set_selected() and minor whitespace for mod pubstream

This commit is contained in:
Mario Vavti 2017-09-21 23:11:15 +02:00
parent 6e9e267b27
commit a7d339be5a

View file

@ -28,6 +28,8 @@ class Pubstream extends \Zotlabs\Web\Controller {
if(! $update) { if(! $update) {
nav_set_selected(t('Public Stream'));
$_SESSION['static_loadtime'] = datetime_convert(); $_SESSION['static_loadtime'] = datetime_convert();
$static = ((local_channel()) ? channel_manual_conv_update(local_channel()) : 1); $static = ((local_channel()) ? channel_manual_conv_update(local_channel()) : 1);
@ -108,7 +110,7 @@ class Pubstream extends \Zotlabs\Web\Controller {
$simple_update = ''; $simple_update = '';
if($static && $simple_update) if($static && $simple_update)
$simple_update .= " and item_thread_top = 0 and author_xchan = '" . protect_sprintf(get_observer_hash()) . "' "; $simple_update .= " and item_thread_top = 0 and author_xchan = '" . protect_sprintf(get_observer_hash()) . "' ";
//logger('update: ' . $update . ' load: ' . $load); //logger('update: ' . $update . ' load: ' . $load);