includes/comment.php
changeset 1163 1b90f6c41d9c
parent 1085 3343a05e7e5b
child 1173 b5b8e7ab0914
equal deleted inserted replaced
1162:daa091452877 1163:1b90f6c41d9c
   141             $row['comment_source'] = $row['comment_data'];
   141             $row['comment_source'] = $row['comment_data'];
   142             
   142             
   143             // Format text
   143             // Format text
   144             $row['comment_data'] = RenderMan::render($row['comment_data']);
   144             $row['comment_data'] = RenderMan::render($row['comment_data']);
   145             
   145             
       
   146             // Hide it if it's a post from a foe
   146             if ( $row['is_buddy'] == 1 && $row['is_friend'] == 0 )
   147             if ( $row['is_buddy'] == 1 && $row['is_friend'] == 0 )
   147             {
   148             {
   148               $seed = md5(sha1(mt_rand() . microtime()));
   149               $seed = md5(sha1(mt_rand() . microtime()));
   149               $wrapper = '
   150               $wrapper = '
   150                 <div id="posthide_'.$seed.'" style="display: none;">
   151                 <div id="posthide_'.$seed.'" style="display: none;">