]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile.php
fix intro bug
[friendica.git] / mod / profile.php
index db538750de6c742af906aafa689715d59be3ccdc..bb7357e5b7e70e1aefd9bb94cee15160c24cf2d5 100644 (file)
@@ -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()) {