Use account.fullName instead of userName for Web UI edit, Wiki uploads.

This commit is contained in:
KOUNOIKE Yuusuke
2017-09-19 23:06:04 +09:00
parent 4d3756ac0a
commit 407c742596
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ class FileUploadController extends ScalatraServlet with FileUploadSupport with R
builder.finish()
val newHeadId = JGitUtil.createNewCommit(git, inserter, headId, builder.getDirCache.writeTree(inserter),
Constants.HEAD, loginAccount.userName, loginAccount.mailAddress, s"Uploaded ${fileName}")
Constants.HEAD, loginAccount.fullName, loginAccount.mailAddress, s"Uploaded ${fileName}")
fileName
}

View File

@@ -717,7 +717,7 @@ trait RepositoryViewerControllerBase extends ControllerBase {
f(git, headTip, builder, inserter)
val commitId = JGitUtil.createNewCommit(git, inserter, headTip, builder.getDirCache.writeTree(inserter),
headName, loginAccount.userName, loginAccount.mailAddress, message)
headName, loginAccount.fullName, loginAccount.mailAddress, message)
inserter.flush()
inserter.close()