diff options
author | silverwind <me@silverwind.io> | 2020-12-09 06:11:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 07:11:15 +0200 |
commit | 97ab820accba40de66d7df7cdc5e396277483710 (patch) | |
tree | 33fac74e7e37d055e066590532e915572f6d7948 /models | |
parent | 10b9a6df0d09b9865f7bd705b70b414d07d3f320 (diff) | |
download | gitea-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.go | 7 |
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 } |