From 43332a483f7838df66e0209eb9c15d4aba3d5874 Mon Sep 17 00:00:00 2001 From: Gusted Date: Thu, 31 Mar 2022 06:02:13 +0200 Subject: 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. --- models/user/user.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'models/user/user.go') 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", } -- cgit v1.2.3