summaryrefslogtreecommitdiffstats
path: root/modules/convert
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2022-10-12 03:03:15 +0200
committerGitHub <noreply@github.com>2022-10-11 21:03:15 -0400
commit4dc3b2ec57cb8295a926a61c20cd0389ec1277c7 (patch)
treeaf5201e6e1fbcdc1874762c2f010dd146fad8a1b /modules/convert
parente026459a2d789d922185711218275c3daa25a4a7 (diff)
downloadgitea-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 'modules/convert')
-rw-r--r--modules/convert/convert.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/convert/convert.go b/modules/convert/convert.go
index af759cb938..187c67fa76 100644
--- a/modules/convert/convert.go
+++ b/modules/convert/convert.go
@@ -412,7 +412,7 @@ func ToLFSLock(l *git_model.LFSLock) *api.LFSLock {
Path: l.Path,
LockedAt: l.Created.Round(time.Second),
Owner: &api.LFSLockOwner{
- Name: u.DisplayName(),
+ Name: u.Name,
},
}
}