when loading a single thread on the channel page, tell JS that there isn't any more content to load.

This commit is contained in:
friendica 2014-01-20 17:45:02 -08:00
parent 8cd6c97e21
commit ea606869a6

View File

@ -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;
}