public function add(tpost $post) { $this->filtercats($post); $post->poll = $this->createpoll(); $post->updatefiltered(); //$post->status = 'draft'; $id = parent::add($post); $this->notify($post); return $id; }
public function add(tpost $post) { //$post->poll = $this->createpoll(); $post->updatefiltered(); return parent::add($post); }