X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofile.php;h=bb7357e5b7e70e1aefd9bb94cee15160c24cf2d5;hb=91fd83575416f0e098ce7a9e71c12e5fea3298d3;hp=db538750de6c742af906aafa689715d59be3ccdc;hpb=c3fd5ed73202f4dd17dda87ac968b0db4f44d423;p=friendica.git diff --git a/mod/profile.php b/mod/profile.php index db538750de..bb7357e5b7 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()) {