示例#1
0
 /**
  * After render update topic data for the user.
  *
  * @return void
  */
 protected function after()
 {
     parent::after();
     $this->topic->hit();
     $this->topic->markRead();
     // Check if subscriptions have been sent and reset the value.
     if ($this->topic->isAuthorised('subscribe') && $this->userTopic->subscribed == 2) {
         $this->userTopic->subscribed = 1;
         $this->userTopic->save();
     }
 }