/** * Answer author will automatically * start following this question * * @return object $this */ protected function followQuestion() { $FollowManager = new FollowManager($this->Registry); $FollowManager->followQuestion($this->Registry->Viewer, $this->Question); return $this; }
/** * Comment author will automatically * start following this question * but only if comment is for a question * not if it's for an answer * * @return object $this */ protected function followQuestion() { d('cp'); if ($this->Resource instanceof \Lampcms\Question) { $FollowManager = new FollowManager($this->Registry); $FollowManager->followQuestion($this->Registry->Viewer, $this->Resource); } return $this; }