From: Zach Prezkuta Date: Mon, 13 Aug 2012 02:29:37 +0000 (-0600) Subject: update items seen in DB when using API X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7d8aee05efdc895049b9a699ac27a3202b6bb8cf;p=friendica.git update items seen in DB when using API --- 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){