From ee5a3a640120f301c7d911c402c99ddaf1996e4f Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Mon, 5 Feb 2024 17:05:31 +0100 Subject: [PATCH] [MODERATION] User blocking (squash) RemoveUsernameParameterSuffix --- routers/web/org/setting/blocked_users.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routers/web/org/setting/blocked_users.go b/routers/web/org/setting/blocked_users.go index 9f0c868aa2..d872dabd83 100644 --- a/routers/web/org/setting/blocked_users.go +++ b/routers/web/org/setting/blocked_users.go @@ -11,7 +11,6 @@ import ( "code.gitea.io/gitea/models/db" user_model "code.gitea.io/gitea/models/user" "code.gitea.io/gitea/modules/context" - "code.gitea.io/gitea/routers/utils" user_service "code.gitea.io/gitea/services/user" ) @@ -35,7 +34,7 @@ func BlockedUsers(ctx *context.Context) { // BlockedUsersBlock blocks a particular user from the organization. func BlockedUsersBlock(ctx *context.Context) { - uname := utils.RemoveUsernameParameterSuffix(strings.ToLower(ctx.FormString("uname"))) + uname := strings.ToLower(ctx.FormString("uname")) u, err := user_model.GetUserByName(ctx, uname) if err != nil { ctx.ServerError("GetUserByName", err)