From 94128626f52528a5eaacb84e609c68035948e0d6 Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Sat, 2 Apr 2022 11:04:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E9=99=90=E5=88=B6=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E7=9A=84=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/repo/cloudbrain.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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) {