diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/channel.php | 8 |
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; } |