diff options
author | zotlabs <mike@macgirvin.com> | 2016-11-02 15:48:29 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-11-02 15:48:29 -0700 |
commit | f91031bd657f6c7bb25d93fc2c69a84846ee9f03 (patch) | |
tree | c069bf265f7b18bf40cdebcf841fe20890cff867 /Zotlabs/Module/Channel.php | |
parent | 5d3e04216d466e57dfeefe0319dd14b26e8487a2 (diff) | |
download | volse-hubzilla-f91031bd657f6c7bb25d93fc2c69a84846ee9f03.tar.gz volse-hubzilla-f91031bd657f6c7bb25d93fc2c69a84846ee9f03.tar.bz2 volse-hubzilla-f91031bd657f6c7bb25d93fc2c69a84846ee9f03.zip |
allow your own likes/comments to be updated when in static update mode
Diffstat (limited to 'Zotlabs/Module/Channel.php')
-rw-r--r-- | Zotlabs/Module/Channel.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php index e8bc53b5e..41b396c5c 100644 --- a/Zotlabs/Module/Channel.php +++ b/Zotlabs/Module/Channel.php @@ -74,6 +74,7 @@ class Channel extends \Zotlabs\Web\Controller { $category = ((x($_REQUEST,'cat')) ? $_REQUEST['cat'] : ''); $hashtags = ((x($_REQUEST,'tag')) ? $_REQUEST['tag'] : ''); + $static = ((array_key_exists('static',$_REQUEST)) ? intval($_REQUEST['static']) : 0); $groups = array(); @@ -110,6 +111,8 @@ class Channel extends \Zotlabs\Web\Controller { if(! $update) { + $static = intval(feature_enabled(\App::$profile['profile_uid'],'static_updates')); + $o .= profile_tabs($a, $is_owner, \App::$profile['channel_address']); $o .= common_friends_visitor_widget(\App::$profile['profile_uid']); @@ -176,6 +179,9 @@ class Channel extends \Zotlabs\Web\Controller { if($load) $simple_update = ''; + if($static && $simple_update) + $simple_update .= " and item_thread_top = 0 and author_xchan = '" . protect_sprintf(get_observer_hash()) . "' "; + if(($update) && (! $load)) { if($mid) { @@ -304,7 +310,7 @@ class Channel extends \Zotlabs\Web\Controller { '$nouveau' => '0', '$wall' => '1', '$fh' => '0', - '$static' => intval(feature_enabled(\App::$profile['profile_uid'],'static_updates')), + '$static' => $static, '$page' => ((\App::$pager['page'] != 1) ? \App::$pager['page'] : 1), '$search' => '', '$order' => '', |