From ea606869a6ece5d13a3d4fd60d1bb6d6e30de439 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 20 Jan 2014 17:45:02 -0800 Subject: when loading a single thread on the channel page, tell JS that there isn't any more content to load. --- mod/channel.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mod') 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 .= '
'; + return $o; } -- cgit v1.2.3