aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-20 17:45:02 -0800
committerfriendica <info@friendica.com>2014-01-20 17:45:02 -0800
commitea606869a6ece5d13a3d4fd60d1bb6d6e30de439 (patch)
tree5e6f30ccb6b219a1159ea196bf951fb5f9445f0d
parent8cd6c97e217f4587dc02db66d8d22bba38159d36 (diff)
downloadvolse-hubzilla-ea606869a6ece5d13a3d4fd60d1bb6d6e30de439.tar.gz
volse-hubzilla-ea606869a6ece5d13a3d4fd60d1bb6d6e30de439.tar.bz2
volse-hubzilla-ea606869a6ece5d13a3d4fd60d1bb6d6e30de439.zip
when loading a single thread on the channel page, tell JS that there isn't any more content to load.
-rw-r--r--mod/channel.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/mod/channel.php b/mod/channel.php
index 6e82eb1e7..34a1e2dda 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -136,10 +136,11 @@ function channel_content(&$a, $update = 0, $load = false) {
if(($update) && (! $load)) {
if ($mid) {
$r = q("SELECT parent AS item_id from item where mid = '%s' and uid = %d AND item_restrict = 0
- AND (item_flags & %d) $sql_extra limit 1",
+ AND (item_flags & %d) AND (item_flags & %d) $sql_extra limit 1",
dbesc($mid),
intval($a->profile['profile_uid']),
- intval(ITEM_WALL)
+ intval(ITEM_WALL),
+ intval(ITEM_UNSEEN)
);
} else {
$r = q("SELECT distinct parent AS `item_id` from item
@@ -295,5 +296,8 @@ function channel_content(&$a, $update = 0, $load = false) {
if((! $update) || ($_COOKIE['jsAvailable'] != 1))
$o .= alt_pager($a,count($items));
+ if($mid)
+ $o .= '<div id="content-complete"></div>';
+
return $o;
}