diff options
author | zotlabs <mike@macgirvin.com> | 2017-12-28 15:12:20 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-12-28 15:12:20 -0800 |
commit | 5cfb63da50f21f0f9591599cde476b575cb1266e (patch) | |
tree | b2b78ed83649c57dfbe3d76b8ec61814a887f329 /Zotlabs/Module/Network.php | |
parent | 38646fe0e1302b3be932a4d59e9431c7afe5c847 (diff) | |
download | volse-hubzilla-5cfb63da50f21f0f9591599cde476b575cb1266e.tar.gz volse-hubzilla-5cfb63da50f21f0f9591599cde476b575cb1266e.tar.bz2 volse-hubzilla-5cfb63da50f21f0f9591599cde476b575cb1266e.zip |
a different (hopefully better) implementation of affinity presets, but not for 3.0 because strings have changed.
Diffstat (limited to 'Zotlabs/Module/Network.php')
-rw-r--r-- | Zotlabs/Module/Network.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php index 4deb7c9e8..d54220e75 100644 --- a/Zotlabs/Module/Network.php +++ b/Zotlabs/Module/Network.php @@ -106,6 +106,8 @@ class Network extends \Zotlabs\Web\Controller { $o = ''; + $default_cmin = ((feature_enabled(local_channel(),'affinity')) ? get_pconfig(local_channel(),'affinity','cmin',0) : 0); + $default_cmax = ((feature_enabled(local_channel(),'affinity')) ? get_pconfig(local_channel(),'affinity','cmax',99) : 99); // if no tabs are selected, defaults to comments @@ -115,8 +117,8 @@ class Network extends \Zotlabs\Web\Controller { $liked = ((x($_GET,'liked')) ? intval($_GET['liked']) : 0); $conv = ((x($_GET,'conv')) ? intval($_GET['conv']) : 0); $spam = ((x($_GET,'spam')) ? intval($_GET['spam']) : 0); - $cmin = ((x($_GET,'cmin')) ? intval($_GET['cmin']) : 0); - $cmax = ((x($_GET,'cmax')) ? intval($_GET['cmax']) : 99); + $cmin = ((x($_GET,'cmin')) ? intval($_GET['cmin']) : $default_cmin); + $cmax = ((x($_GET,'cmax')) ? intval($_GET['cmax']) : $default_cmax); $file = ((x($_GET,'file')) ? $_GET['file'] : ''); $xchan = ((x($_GET,'xchan')) ? $_GET['xchan'] : ''); $net = ((x($_GET,'net')) ? $_GET['net'] : ''); |