'mark seen' not getting all msgs on profile page

This commit is contained in:
Friendika 2011-05-20 19:28:48 -07:00
parent db60d6d78f
commit 22cf6b3fe6
2 changed files with 10 additions and 8 deletions

View File

@ -100,14 +100,16 @@ function network_content(&$a, $update = 0) {
} }
// We aren't going to try and figure out at the item, group, and page level // We aren't going to try and figure out at the item, group, and page
// which items you've seen and which you haven't. You're looking at some // level which items you've seen and which you haven't. If you're looking
// subset of items, so just mark everything seen. // at the top level network page just mark everything seen.
$r = q("UPDATE `item` SET `unseen` = 0 if((! $group) && (! $cid)) {
WHERE `unseen` = 1 AND `uid` = %d", $r = q("UPDATE `item` SET `unseen` = 0
intval($_SESSION['uid']) WHERE `unseen` = 1 AND `uid` = %d",
); intval($_SESSION['uid'])
);
}
// We don't have to deal with ACL's on this page. You're looking at everything // We don't have to deal with ACL's on this page. You're looking at everything
// that belongs to you, hence you can see all of it. We will filter by group if // that belongs to you, hence you can see all of it. We will filter by group if

View File

@ -168,7 +168,7 @@ function profile_content(&$a, $update = 0) {
// Oh - while we're here... reset the Unseen messages // Oh - while we're here... reset the Unseen messages
$r = q("UPDATE `item` SET `unseen` = 0 $r = q("UPDATE `item` SET `unseen` = 0
WHERE `type` != 'remote' AND `unseen` = 1 AND `uid` = %d", WHERE `wall` = 1 AND `unseen` = 1 AND `uid` = %d",
intval($_SESSION['uid']) intval($_SESSION['uid'])
); );