Skip to content
Prev Previous commit
Next Next commit
add back serviceworker.js to reserved usernames
  • Loading branch information
silverwind committed May 11, 2021
commit 0bcfd20bc876513b94fdbf296cf6b2bfd92e9f9b
3 changes: 2 additions & 1 deletion models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,7 @@ var (
"debug",
"error",
"explore",
"favicon.ico",
"ghost",
"help",
"install",
Expand All @@ -807,10 +808,10 @@ var (
"repo",
"robots.txt",
"search",
"serviceworker.js",
"stars",
"template",
"user",
"favicon.ico",
}

reservedUserPatterns = []string{"*.keys", "*.gpg"}
Expand Down