aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Network.php
diff options
context:
space:
mode:
authorDM42.Net (Matt Dent) <dentm42@dm42.net>2018-12-14 12:52:58 -0500
committerDM42.Net (Matt Dent) <dentm42@dm42.net>2018-12-14 12:55:49 -0500
commiteb297104debfc42fe6f3afee4eae3c2602627aeb (patch)
treee4122dfa9269c6769bd867cfcc6ee1fc4dff022a /Zotlabs/Module/Network.php
parentf81a3ba45d50c0a0e4da68c17aba73425058e23d (diff)
downloadvolse-hubzilla-eb297104debfc42fe6f3afee4eae3c2602627aeb.tar.gz
volse-hubzilla-eb297104debfc42fe6f3afee4eae3c2602627aeb.tar.bz2
volse-hubzilla-eb297104debfc42fe6f3afee4eae3c2602627aeb.zip
Make Affinity Slider (optionally) 'sticky' across page loads. (default is current behavior: reset slider with each page load)
Diffstat (limited to 'Zotlabs/Module/Network.php')
-rw-r--r--Zotlabs/Module/Network.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php
index b93faa612..894e5c8b6 100644
--- a/Zotlabs/Module/Network.php
+++ b/Zotlabs/Module/Network.php
@@ -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;