aboutsummaryrefslogtreecommitdiffstats
path: root/mod/home.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-22 15:00:41 -0700
committerfriendica <info@friendica.com>2015-03-22 15:00:41 -0700
commit2bd19e6b51ff7331c04f23c0ab78f1e16b5a054e (patch)
tree5a0c3ecceecc90eaeb9745b7845e159a03620167 /mod/home.php
parentf5f194c92bf0992b3a24e7b62cf6f9556a6335c4 (diff)
downloadvolse-hubzilla-2bd19e6b51ff7331c04f23c0ab78f1e16b5a054e.tar.gz
volse-hubzilla-2bd19e6b51ff7331c04f23c0ab78f1e16b5a054e.tar.bz2
volse-hubzilla-2bd19e6b51ff7331c04f23c0ab78f1e16b5a054e.zip
$simple_update isn't so simple any more. Make sure we don't re-itnroduce the bug that session['loadtime'] was created to fix. It's questionable whether we still need to even look for item_unseen but I won't make that call today. We can also eliminate the restriction on not doing live updates from the discover tab since we aren't relying completely on item_unseen (which can only be set by the owner and won't work on a page with virtual owners).
Diffstat (limited to 'mod/home.php')
-rw-r--r--mod/home.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/home.php b/mod/home.php
index 9b2cc0e6d..f4358da5c 100644
--- a/mod/home.php
+++ b/mod/home.php
@@ -185,7 +185,7 @@ function home_content(&$a, $update = 0, $load = false) {
$simple_update = (($update) ? " and item.item_unseen = 1 " : '');
if($update && $_SESSION['loadtime'])
- $simple_update = " AND ( item_unseen = 1 or item.changed > '" . datetime_convert('UTC','UTC',$_SESSION['loadtime']) . "' ) ";
+ $simple_update = " AND (( item_unseen = 1 AND item.changed > '" . datetime_convert('UTC','UTC',$_SESSION['loadtime']) . "' ) OR item.changed > '" . datetime_convert('UTC','UTC',$_SESSION['loadtime']) . "' ) ";
if($load)
$simple_update = '';