aboutsummaryrefslogtreecommitdiffstats
path: root/models/user
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-03-31 06:02:13 +0200
committerGitHub <noreply@github.com>2022-03-31 12:02:13 +0800
commit43332a483f7838df66e0209eb9c15d4aba3d5874 (patch)
tree684e440f4f27ad3e09776ae5e203e1d289737175 /models/user
parentba5f2acb9ccb40281ca8ab7eaf9dea6a77eb220d (diff)
downloadgitea-43332a483f7838df66e0209eb9c15d4aba3d5874.tar.gz
gitea-43332a483f7838df66e0209eb9c15d4aba3d5874.zip
Update reserved usernames list (#18438)
Adding additional usernames which are already routes, remove unused ones. In future, avoid reserving names as much as possible, use `/-/` in path instead.
Diffstat (limited to 'models/user')
-rw-r--r--models/user/user.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/models/user/user.go b/models/user/user.go
index 884e84e7e7..c848895239 100644
--- a/models/user/user.go
+++ b/models/user/user.go
@@ -576,6 +576,7 @@ var (
"api",
"assets",
"attachments",
+ "avatar",
"avatars",
"captcha",
"commits",
@@ -584,10 +585,7 @@ var (
"explore",
"favicon.ico",
"ghost",
- "help",
- "install",
"issues",
- "less",
"login",
"manifest.json",
"metrics",
@@ -595,15 +593,15 @@ var (
"new",
"notifications",
"org",
- "plugins",
"pulls",
"raw",
"repo",
+ "repo-avatars",
"robots.txt",
"search",
"serviceworker.js",
- "stars",
- "template",
+ "ssh_info",
+ "swagger.v1.json",
"user",
"v2",
}