public static function contentTweet($content, $model)
{
$content = static::contentReplaceAtUser($content, $model);
$content = static::contentReplaceTag($content);
return $content;
}
public function beforeSave($insert) { if (!parent::beforeSave($insert)) { return false; } $this->content = PostService::contentTweet($this->content, $this); return true; }