allow your own likes/comments to be updated when in static update mode

This commit is contained in:
zotlabs
2016-11-02 15:48:29 -07:00
parent 5d3e04216d
commit f91031bd65
8 changed files with 43 additions and 15 deletions

View File

@@ -22,9 +22,12 @@ class Pubstream extends \Zotlabs\Web\Controller {
$item_normal = item_normal();
$static = ((local_channel()) ? intval(feature_enabled(local_channel(),'static_updates')) : 0);
$static = ((array_key_exists('static',$_REQUEST)) ? intval($_REQUEST['static']) : 0);
if(! $update) {
$static = ((local_channel()) ? intval(feature_enabled(local_channel(),'static_updates')) : 0);
$maxheight = get_config('system','home_divmore_height');
if(! $maxheight)
@@ -99,7 +102,10 @@ class Pubstream extends \Zotlabs\Web\Controller {
$simple_update = " AND (( item_unseen = 1 AND item.changed > '" . datetime_convert('UTC','UTC',$_SESSION['loadtime']) . "' ) OR item.changed > '" . datetime_convert('UTC','UTC',$_SESSION['loadtime']) . "' ) ";
if($load)
$simple_update = '';
if($static && $simple_update)
$simple_update .= " and item_thread_top = 0 and author_xchan = '" . protect_sprintf(get_observer_hash()) . "' ";
//logger('update: ' . $update . ' load: ' . $load);
if($update) {