diff --git a/routers/repo/cloudbrain.go b/routers/repo/cloudbrain.go index 226b4ce7d..e38829ca9 100755 --- a/routers/repo/cloudbrain.go +++ b/routers/repo/cloudbrain.go @@ -586,18 +586,11 @@ func checkTopics(Topics string) ([]string, string) { topics = strings.Split(topicsStr, ",") } - validTopics, invalidTopics := models.SanitizeAndValidateTopics(topics) - - if len(validTopics) > 25 { - return nil, "repo.topic.count_prompt" - - } - - if len(invalidTopics) > 0 { + if len(topics) > 25 { return nil, "repo.topic.count_prompt" } - return validTopics, "" + return topics, "" } func CloudBrainStop(ctx *context.Context) {