summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-12-09 06:11:15 +0100
committerGitHub <noreply@github.com>2020-12-09 07:11:15 +0200
commit97ab820accba40de66d7df7cdc5e396277483710 (patch)
tree33fac74e7e37d055e066590532e915572f6d7948 /models
parent10b9a6df0d09b9865f7bd705b70b414d07d3f320 (diff)
downloadgitea-97ab820accba40de66d7df7cdc5e396277483710.tar.gz
gitea-97ab820accba40de66d7df7cdc5e396277483710.zip
Fix action avatar loading (#13909)
Fixes #13883 Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'models')
-rw-r--r--models/action.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/models/action.go b/models/action.go
index ca186033a6..67c60d84f3 100644
--- a/models/action.go
+++ b/models/action.go
@@ -77,7 +77,8 @@ func (a *Action) GetOpType() ActionType {
return a.OpType
}
-func (a *Action) loadActUser() {
+// LoadActUser loads a.ActUser
+func (a *Action) LoadActUser() {
if a.ActUser != nil {
return
}
@@ -105,13 +106,13 @@ func (a *Action) loadRepo() {
// GetActFullName gets the action's user full name.
func (a *Action) GetActFullName() string {
- a.loadActUser()
+ a.LoadActUser()
return a.ActUser.FullName
}
// GetActUserName gets the action's user name.
func (a *Action) GetActUserName() string {
- a.loadActUser()
+ a.LoadActUser()
return a.ActUser.Name
}