Browse Source

#1250

add topic display limit
tags/V1.22.3.1^2
chenyifan01 4 years ago
parent
commit
109c9b013e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/topic.go

+ 1
- 1
models/topic.go View File

@@ -330,7 +330,7 @@ func GetOrgTopics(orgId int64) ([]Topic, error) {
sql := "select t.* from repository r " +
"inner join repo_topic rt on rt.repo_id = r.id " +
"inner join topic t on rt.topic_id = t.id " +
"where r.owner_id = ? order by repo_count desc"
"where r.owner_id = ? order by repo_count desc limit 50"
if e := x.SQL(sql, orgId).Find(&result); e != nil {
return nil, e
}


Loading…
Cancel
Save