Change reserved avatar name to correct - avatars (#3375)

tokarchuk/v1.17
Lauris BH 7 years ago committed by GitHub
parent e2bb7933e8
commit a68bf746a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      models/user.go

@ -649,7 +649,7 @@ func NewGhostUser() *User {
}
var (
reservedUsernames = []string{"assets", "css", "explore", "img", "js", "less", "plugins", "debug", "raw", "install", "api", "avatar", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "new", ".", ".."}
reservedUsernames = []string{"assets", "css", "explore", "img", "js", "less", "plugins", "debug", "raw", "install", "api", "avatars", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "new", ".", ".."}
reservedUserPatterns = []string{"*.keys"}
)

Loading…
Cancel
Save