aboutsummaryrefslogtreecommitdiffstats
path: root/mod/home.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-21 16:46:28 -0700
committerfriendica <info@friendica.com>2015-03-21 16:46:28 -0700
commita2e3ca6fd8ba8c0630de089d772fdd668b84428b (patch)
tree66396776eb293108450c98f2ec1047cafda0fcb5 /mod/home.php
parent85dd08427c6067554762854c584eae0ca90fea43 (diff)
downloadvolse-hubzilla-a2e3ca6fd8ba8c0630de089d772fdd668b84428b.tar.gz
volse-hubzilla-a2e3ca6fd8ba8c0630de089d772fdd668b84428b.tar.bz2
volse-hubzilla-a2e3ca6fd8ba8c0630de089d772fdd668b84428b.zip
add loadtime search to channel and fix it for home. display and search need further investigation
Diffstat (limited to 'mod/home.php')
-rw-r--r--mod/home.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/mod/home.php b/mod/home.php
index 6d5c7db25..c449a0561 100644
--- a/mod/home.php
+++ b/mod/home.php
@@ -7,6 +7,7 @@ require_once('include/conversation.php');
function home_init(&$a) {
$ret = array();
+
call_hooks('home_init',$ret);
$splash = ((argc() > 1 && argv(1) === 'splash') ? true : false);
@@ -35,6 +36,10 @@ function home_content(&$a, $update = 0, $load = false) {
$o = '';
+
+ if($load)
+ $_SESSION['loadtime'] = datetime_convert();
+
if(x($_SESSION,'theme'))
unset($_SESSION['theme']);
if(x($_SESSION,'mobile_theme'))
@@ -192,8 +197,6 @@ function home_content(&$a, $update = 0, $load = false) {
if($load) {
- $_SESSION['loadtime'] = datetime_convert();
-
// Fetch a page full of parent items for this page
$r = q("SELECT distinct item.id AS item_id, $ordering FROM item
@@ -208,7 +211,17 @@ function home_content(&$a, $update = 0, $load = false) {
}
+ elseif($update) {
+ $r = q("SELECT distinct item.id AS item_id, $ordering FROM item
+ left join abook on item.author_xchan = abook.abook_xchan
+ WHERE true $uids AND item.item_restrict = 0
+ AND item.parent = item.id $simple_update
+ and ((abook.abook_flags & %d) = 0 or abook.abook_flags is null)
+ $sql_extra3 $sql_extra $sql_nets",
+ intval(ABOOK_FLAG_BLOCKED)
+ );
+ }
// Then fetch all the children of the parents that are on this page
$parents_str = '';
$update_unseen = '';