/** * Start a tag subscription! * * @param profile $profile subscriber * @param string $tag subscribee * @return TagSub */ static function start(Profile $profile, $tag) { $ts = new TagSub(); $ts->tag = $tag; $ts->profile_id = $profile->id; $ts->created = common_sql_now(); $ts->insert(); self::blow('tagsub:by_profile:%d', $profile->id); return $ts; }