public function avatar(User $user, $id, array $html_options = array()) { static $shown_avatars = array(); static $posts_to_send = array(); #if not @shown_avatars[user] then $shown_avatars[$user->id] = true; $posts_to_send[] = $user->avatar_post; $this->avatar_posts_registry[] = $user->avatar_post; $img = $this->imageTag($user->avatar_url() . "?" . strtotime($user->avatar_timestamp), array_merge(array('class' => "avatar", 'width' => $user->avatar_width, 'height' => $user->avatar_height), $html_options)); return $this->linkTo($img, array("post#show", 'id' => $user->avatar_post->id), array('class' => "ca" . $user->avatar_post->id, 'onclick' => "return Post.check_avatar_blacklist(" . $user->avatar_post->id . ", " . $id . ")")); #end }