aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-20 05:21:19 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-20 05:21:19 -0700
commit466267fbb5b5cc466196e40b6a8fe96f25c57e2f (patch)
tree8fc00033648bd7716fdeac8eaddca054b2fbf1be /mod/profile.php
parentba8da761e669b22e16e1075e0e1e79d8b458af3e (diff)
downloadvolse-hubzilla-466267fbb5b5cc466196e40b6a8fe96f25c57e2f.tar.gz
volse-hubzilla-466267fbb5b5cc466196e40b6a8fe96f25c57e2f.tar.bz2
volse-hubzilla-466267fbb5b5cc466196e40b6a8fe96f25c57e2f.zip
lotsoflittlestuff
Diffstat (limited to 'mod/profile.php')
-rw-r--r--mod/profile.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/mod/profile.php b/mod/profile.php
index db538750d..bb7357e5b 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -126,8 +126,17 @@ function profile_content(&$a) {
// Profile owner - everything is visible
- if(local_user() && ($_SESSION['uid'] == $a->profile['profile_uid']))
+ if(local_user() && ($_SESSION['uid'] == $a->profile['profile_uid'])) {
$sql_extra = '';
+
+ // Oh - while we're here... reset the Unseen messages
+
+ $r = q("UPDATE `item` SET `unseen` = 0
+ WHERE `type` != 'remote' AND `unseen` = 1 AND `uid` = %d",
+ intval($_SESSION['uid'])
+ );
+
+ }
// authenticated visitor - here lie dragons
elseif(remote_user()) {