mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-21 09:06:46 +09:00
1 parent
c30ddc3e14
commit
e60d1c7fc8
13 files changed
+29
-41
No files matched your search
@@ -366,7 +366,7 @@ func ViewUser(ctx *context.Context) {
|
||||
func getTargetBot(ctx *context.Context) *user_model.User {
|
||||
u, err := user_model.GetUserByID(ctx, ctx.PathParamInt64("userid"))
|
||||
if err != nil {
|
||||
ctx.NotFoundOrServerError("GetUserByID", user_model.IsErrUserNotExist, err)
|
||||
ctx.ServerError("GetUserByID", err)
|
||||
return nil
|
||||
}
|
||||
if !u.IsTypeBot() {
|
||||
|
||||
Reference in new issue
Block a user