aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Display.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-01 20:21:39 -0700
committerzotlabs <mike@macgirvin.com>2016-11-01 20:21:39 -0700
commitca948d66a901677665c7a5983dc438918d7fb1c9 (patch)
tree93c97a7d61a80418cab6cf68ad322e784ab121a5 /Zotlabs/Module/Display.php
parentfa8cb40af0457ed9ad418be2ba64dc221cbaa842 (diff)
downloadvolse-hubzilla-ca948d66a901677665c7a5983dc438918d7fb1c9.tar.gz
volse-hubzilla-ca948d66a901677665c7a5983dc438918d7fb1c9.tar.bz2
volse-hubzilla-ca948d66a901677665c7a5983dc438918d7fb1c9.zip
feature: static page update as opposed to live update of conversations on the page. Changes will be queued until the page is reloaded. There may or may not be notifications of pending activity updates depending on your notification preferences. Endless scrolling (append) is still performed either way. This only affects changed and new/unseen items being inserted into the page.
Diffstat (limited to 'Zotlabs/Module/Display.php')
-rw-r--r--Zotlabs/Module/Display.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php
index 3d3609ee0..42bb6fe14 100644
--- a/Zotlabs/Module/Display.php
+++ b/Zotlabs/Module/Display.php
@@ -130,6 +130,7 @@ class Display extends \Zotlabs\Web\Controller {
if($load)
$simple_update = '';
+ $static = ((local_channel()) ? intval(feature_enabled(local_channel(),'static_updates')) : 0);
if((! $update) && (! $load)) {
@@ -154,6 +155,7 @@ class Display extends \Zotlabs\Web\Controller {
'$fh' => '0',
'$nouveau' => '0',
'$wall' => '0',
+ '$static' => $static,
'$page' => ((\App::$pager['page'] != 1) ? \App::$pager['page'] : 1),
'$list' => ((x($_REQUEST,'list')) ? intval($_REQUEST['list']) : 0),
'$search' => '',