/** * Recovers the selected thread. */ public function recover() { if (!$this->board->getModeratorPermission('canDeleteThreadCompletely')) { return; } if ($this->thread != null && $this->thread->isDeleted) { $this->thread->restore(); $this->thread->refresh(); $this->addThread(); } }