mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 02:21:17 +02:00
Virtual user gitea-bots
This commit is contained in:
1 parent
1e209973ee
commit
339ddf4c5f
3 files changed
+26
-17
No files matched your search
@@ -577,6 +577,13 @@ func (u *User) IsGhost() bool {
|
||||
return u.ID == -1 && u.Name == "Ghost"
|
||||
}
|
||||
|
||||
func (u *User) IsBots() bool {
|
||||
if u == nil {
|
||||
return false
|
||||
}
|
||||
return u.ID == -2 && u.Name == "gitea-bots"
|
||||
}
|
||||
|
||||
var (
|
||||
reservedUsernames = []string{
|
||||
".",
|
||||
|
||||
Reference in new issue
Block a user