aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Search.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/Search.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/Search.php')
-rw-r--r--Zotlabs/Module/Search.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Module/Search.php b/Zotlabs/Module/Search.php
index 796f95d6e..9ebd50a2c 100644
--- a/Zotlabs/Module/Search.php
+++ b/Zotlabs/Module/Search.php
@@ -53,6 +53,8 @@ class Search extends \Zotlabs\Web\Controller {
$tag = true;
$search = ((x($_GET,'tag')) ? trim(rawurldecode($_GET['tag'])) : '');
}
+
+ $static = ((array_key_exists('static',$_REQUEST)) ? intval($_REQUEST['static']) : 0);
if((! local_channel()) || (! feature_enabled(local_channel(),'savedsearch')))
$o .= search($search,'search-box','/search',((local_channel()) ? true : false));
@@ -96,10 +98,12 @@ class Search extends \Zotlabs\Web\Controller {
// OR your own posts if you are a logged in member
// No items will be shown if the member has a blocked profile wall.
- $static = ((local_channel()) ? intval(feature_enabled(local_channel(),'static_updates')) : 0);
if((! $update) && (! $load)) {
+ $static = ((local_channel()) ? intval(feature_enabled(local_channel(),'static_updates')) : 0);
+
+
// This is ugly, but we can't pass the profile_uid through the session to the ajax updater,
// because browser prefetching might change it on us. We have to deliver it with the page.