Browse Source

mod repo description

tags/v1.21.12.1
yuyuanshifu 5 years ago
parent
commit
aee620539f
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      models/repo.go

+ 3
- 1
models/repo.go View File

@@ -1386,9 +1386,11 @@ func GetRepositoriesByForkID(forkID int64) ([]*Repository, error) {
func updateRepository(e Engine, repo *Repository, visibilityChanged bool) (err error) {
repo.LowerName = strings.ToLower(repo.Name)

if len(repo.Description) > 255 {
/*if len(repo.Description) > 255 {
repo.Description = repo.Description[:255]
}

*/
if len(repo.Website) > 255 {
repo.Website = repo.Website[:255]
}


Loading…
Cancel
Save