getMatchingRoute("/$screen_name")[0]->presenter !== "UnknownTextRouteStrategy") { if(substr($screen_name, 0, strlen("id")) === "id") { return (object) [ "object_id" => (int) substr($screen_name, strlen("id")), "type" => "user" ]; } else if(substr($screen_name, 0, strlen("club")) === "club") { return (object) [ "object_id" => (int) substr($screen_name, strlen("club")), "type" => "group" ]; } } else { $alias = (new Aliases)->getByShortCode($screen_name); if(!$alias) return (object)[]; return (object) [ "object_id" => $alias->getOwnerId(), "type" => $alias->getType() ]; } } }