summaryrefslogtreecommitdiffstats
path: root/models/action.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-05-26 23:34:11 -0400
committerLunny Xiao <xiaolunwen@gmail.com>2017-05-27 11:34:11 +0800
commitbafd778c259801f0ceef1f621851afd43eabc3a5 (patch)
tree602439d5f39b67dcb321ebf1e14feadc88e5c550 /models/action.go
parent97f7f88bed28c256d112bd1962b6a7a84baa9931 (diff)
downloadgitea-bafd778c259801f0ceef1f621851afd43eabc3a5.tar.gz
gitea-bafd778c259801f0ceef1f621851afd43eabc3a5.zip
Fix invalid reference in feeds template (#1820)
* Fix invalid reference in feeds template * Comment for GetActAvatar * Add integration test
Diffstat (limited to 'models/action.go')
-rw-r--r--models/action.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/models/action.go b/models/action.go
index 4af81ce80a..a09e420660 100644
--- a/models/action.go
+++ b/models/action.go
@@ -142,6 +142,12 @@ func (a *Action) ShortActUserName() string {
return base.EllipsisString(a.GetActUserName(), 20)
}
+// GetActAvatar the action's user's avatar link
+func (a *Action) GetActAvatar() string {
+ a.loadActUser()
+ return a.ActUser.AvatarLink()
+}
+
// GetRepoUserName returns the name of the action repository owner.
func (a *Action) GetRepoUserName() string {
a.loadRepo()