/**
  * Closes the selected post.
  */
 public function close()
 {
     if (!$this->board->getModeratorPermission('canClosePost')) {
         return;
     }
     if ($this->post != null && !$this->post->isClosed) {
         $this->post->close();
     }
 }