Browse Source

不限制标签的格式

pull/1839/head
ychao_1983 3 years ago
parent
commit
94128626f5
1 changed files with 2 additions and 9 deletions
  1. +2
    -9
      routers/repo/cloudbrain.go

+ 2
- 9
routers/repo/cloudbrain.go View File

@@ -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) {


Loading…
Cancel
Save