X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofile.php;h=bb7357e5b7e70e1aefd9bb94cee15160c24cf2d5;hb=91fd83575416f0e098ce7a9e71c12e5fea3298d3;hp=5cd13d596125f70641b0e1307c77f246ec49b053;hpb=6695b4a203ab03941c8b3305a3e55cc02b85a5ac;p=friendica.git diff --git a/mod/profile.php b/mod/profile.php index 5cd13d5961..bb7357e5b7 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -1,11 +1,7 @@ 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()) {