/** * Disables the selected post. */ public function disable() { if (!$this->board->getModeratorPermission('canEnablePost')) { return; } if ($this->post != null && !$this->post->isDisabled) { $this->post->disable(); $this->thread->checkVisibility(); $this->removePost(); } }