diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2022-10-12 03:03:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-11 21:03:15 -0400 |
commit | 4dc3b2ec57cb8295a926a61c20cd0389ec1277c7 (patch) | |
tree | af5201e6e1fbcdc1874762c2f010dd146fad8a1b /routers/web/repo/view.go | |
parent | e026459a2d789d922185711218275c3daa25a4a7 (diff) | |
download | gitea-4dc3b2ec57cb8295a926a61c20cd0389ec1277c7.tar.gz gitea-4dc3b2ec57cb8295a926a61c20cd0389ec1277c7.zip |
Use Name instead of DisplayName in LFS Lock (#21415)
Fixes #21268
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/web/repo/view.go')
-rw-r--r-- | routers/web/repo/view.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go index 768a30ec21..34305b7621 100644 --- a/routers/web/repo/view.go +++ b/routers/web/repo/view.go @@ -455,7 +455,7 @@ func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink st ctx.ServerError("GetTreePathLock", err) return } - ctx.Data["LFSLockOwner"] = u.DisplayName() + ctx.Data["LFSLockOwner"] = u.Name ctx.Data["LFSLockOwnerHomeLink"] = u.HomeLink() ctx.Data["LFSLockHint"] = ctx.Tr("repo.editor.this_file_locked") } |