aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-12 20:56:23 -0700
committerfriendica <info@friendica.com>2012-08-12 20:56:23 -0700
commit184cf51d2f21782d8fa78d833b1439ed692126ff (patch)
treecc2d74b87c5ac94fe7aa7c97382b6f982810298b /include/api.php
parent9899cfb5c75b6855e158d855ca0dba1344ca6262 (diff)
downloadvolse-hubzilla-184cf51d2f21782d8fa78d833b1439ed692126ff.tar.gz
volse-hubzilla-184cf51d2f21782d8fa78d833b1439ed692126ff.tar.bz2
volse-hubzilla-184cf51d2f21782d8fa78d833b1439ed692126ff.zip
reduce duplication - only provide one system language setting
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/api.php b/include/api.php
index 7d230629b..456d984de 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){