The unseen marker is now set according to the query that is used for the home timeline.

This commit is contained in:
Michael Vogel 2015-04-03 14:58:42 +02:00
parent 1cacf64724
commit e9a2cf7a91

View file

@ -1129,15 +1129,14 @@
$ret = api_format_items($r,$user_info); $ret = api_format_items($r,$user_info);
// We aren't going to try to figure out at the item, group, and page // Set all posts from the query above to seen
// level which items you've seen and which you haven't. If you're looking $idarray = array();
// at the network timeline just mark everything seen. foreach ($r AS $item)
$idarray[] = intval($item["id"]);
$r = q("UPDATE `item` SET `unseen` = 0 $idlist = implode(",", $idarray);
WHERE `unseen` = 1 AND `uid` = %d",
//intval($user_info['uid']) $r = q("UPDATE `item` SET `unseen` = 0 WHERE `unseen` AND `id` IN (%s)", $idlist);
intval(api_user())
);
$data = array('$statuses' => $ret); $data = array('$statuses' => $ret);