From c4e4ee892e9ba04ad782098e707ecc2d04223cd0 Mon Sep 17 00:00:00 2001 From: zottel Date: Tue, 13 Nov 2012 11:30:43 +0100 Subject: [PATCH] Mark items read on filtered network page, but still keep the "mark everything read" mechanism on viewing the unfiltered network page. --- mod/network.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mod/network.php b/mod/network.php index 28893dda7b..bbdd0130d7 100644 --- a/mod/network.php +++ b/mod/network.php @@ -782,9 +782,10 @@ function network_content(&$a, $update = 0) { intval(local_user()) ); } - -// if($update_unseen) -// $r = q("UPDATE `item` SET `unseen` = 0 $update_unseen"); + else { + if($update_unseen) + $r = q("UPDATE `item` SET `unseen` = 0 $update_unseen"); + } // Set this so that the conversation function can find out contact info for our wall-wall items $a->page_contact = $a->contact; -- 2.39.5