/** * What tags are present in the request (ie that should filter and be applied to posts */ protected function afterPostCreated(MicroPost $post) { $tags = array(); if ($this->data()->SelfTagPosts) { $tags[] = $this->data()->selfTag(); } $add = $this->AddTags->getValues(); if (count($add)) { $tags = array_merge($tags, $add); } $post->tag($tags); }