aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Display.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-02 15:48:29 -0700
committerzotlabs <mike@macgirvin.com>2016-11-02 15:48:29 -0700
commitf91031bd657f6c7bb25d93fc2c69a84846ee9f03 (patch)
treec069bf265f7b18bf40cdebcf841fe20890cff867 /Zotlabs/Module/Display.php
parent5d3e04216d466e57dfeefe0319dd14b26e8487a2 (diff)
downloadvolse-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/Display.php')
-rw-r--r--Zotlabs/Module/Display.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php
index 42bb6fe14..25153839c 100644
--- a/Zotlabs/Module/Display.php
+++ b/Zotlabs/Module/Display.php
@@ -121,6 +121,8 @@ class Display extends \Zotlabs\Web\Controller {
return '';
}
}
+
+ $static = ((array_key_exists('static',$_REQUEST)) ? intval($_REQUEST['static']) : 0);
$simple_update = (($update) ? " AND item_unseen = 1 " : '');
@@ -130,11 +132,13 @@ class Display extends \Zotlabs\Web\Controller {
if($load)
$simple_update = '';
- $static = ((local_channel()) ? intval(feature_enabled(local_channel(),'static_updates')) : 0);
-
+ if($static && $simple_update)
+ $simple_update .= " and item_thread_top = 0 and author_xchan = '" . protect_sprintf(get_observer_hash()) . "' ";
if((! $update) && (! $load)) {
+
+ $static = ((local_channel()) ? intval(feature_enabled(local_channel(),'static_updates')) : 0);
$o .= '<div id="live-display"></div>' . "\r\n";
$o .= "<script> var profile_uid = " . ((intval(local_channel())) ? local_channel() : (-1))