Make Affinity Slider (optionally) 'sticky' across page loads. (default is current behavior: reset slider with each page load)

This commit is contained in:
DM42.Net (Matt Dent)
2018-12-14 12:52:58 -05:00
parent f81a3ba45d
commit eb297104de
3 changed files with 22 additions and 2 deletions

View File

@@ -132,6 +132,13 @@ class Network extends \Zotlabs\Web\Controller {
$deftag = '';
if (feature_enabled(local_channel(),'affinity')) {
$affinity_locked = int(get_pconfig(local_channel(),'affinity','lock',1));
if ($affinity_locked) {
set_pconfig(local_channel(),'affinity','cmin',$cmin);
set_pconfig(local_channel(),'affinity','cmax',$cmax);
}
}
if(x($_GET,'search') || $file || (!$pf && $cid) || $hashtags || $verb || $category || $conv || $unseen)
$nouveau = true;