]> git.mxchange.org Git - friendica.git/commitdiff
'mark seen' not getting all msgs on profile page
authorFriendika <info@friendika.com>
Sat, 21 May 2011 02:28:48 +0000 (19:28 -0700)
committerFriendika <info@friendika.com>
Sat, 21 May 2011 02:28:48 +0000 (19:28 -0700)
mod/network.php
mod/profile.php

index 7ad5058bf813f8095a329fdba4a4a54c50e534d8..16739b434579753b947929a8fe0af41bf0766280 100644 (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 
-       // which items you've seen and which you haven't. You're looking at some
-       // subset of items, so just mark everything seen. 
+       // We aren't going to try and figure out at the item, group, and page
+       // level which items you've seen and which you haven't. If you're looking
+       // at the top level network page just mark everything seen. 
        
-       $r = q("UPDATE `item` SET `unseen` = 0 
-               WHERE `unseen` = 1 AND `uid` = %d",
-               intval($_SESSION['uid'])
-       );
+       if((! $group) && (! $cid)) {
+               $r = q("UPDATE `item` SET `unseen` = 0 
+                       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
        // that belongs to you, hence you can see all of it. We will filter by group if
index 340c96d860d2fddc9c40ff05ee6e6eeabf556015..634aec460be3c48621901de5a17082b442e8c9a1 100644 (file)
@@ -168,7 +168,7 @@ function profile_content(&$a, $update = 0) {
                // Oh - while we're here... reset the Unseen messages
 
                $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'])
                );