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:
parent
8cd6c97e21
commit
ea606869a6
@ -136,10 +136,11 @@ function channel_content(&$a, $update = 0, $load = false) {
|
|||||||
if(($update) && (! $load)) {
|
if(($update) && (! $load)) {
|
||||||
if ($mid) {
|
if ($mid) {
|
||||||
$r = q("SELECT parent AS item_id from item where mid = '%s' and uid = %d AND item_restrict = 0
|
$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),
|
dbesc($mid),
|
||||||
intval($a->profile['profile_uid']),
|
intval($a->profile['profile_uid']),
|
||||||
intval(ITEM_WALL)
|
intval(ITEM_WALL),
|
||||||
|
intval(ITEM_UNSEEN)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$r = q("SELECT distinct parent AS `item_id` from item
|
$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))
|
if((! $update) || ($_COOKIE['jsAvailable'] != 1))
|
||||||
$o .= alt_pager($a,count($items));
|
$o .= alt_pager($a,count($items));
|
||||||
|
|
||||||
|
if($mid)
|
||||||
|
$o .= '<div id="content-complete"></div>';
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user