X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fapi.php;h=456d984de17fb287276695842fe28b0cfaa73b57;hb=34081010ff2eeab2863bfe409f7fd75ecb9e2b20;hp=7d230629b0dab4445e41a0d9de140c46f71fef3e;hpb=5f400c4a9798d04c267cc05f2250a6c810802553;p=friendica.git diff --git a/include/api.php b/include/api.php index 7d230629b0..456d984de1 100644 --- a/include/api.php +++ b/include/api.php @@ -755,6 +755,15 @@ $ret = api_format_items($r,$user_info); + // We aren't going to try to 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 network timeline just mark everything seen. + + $r = q("UPDATE `item` SET `unseen` = 0 + WHERE `unseen` = 1 AND `uid` = %d", + intval($user_info['uid']) + ); + $data = array('$statuses' => $ret); switch($type){