summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-02-15 15:18:53 -0500
committerUnknwon <u@gogs.io>2016-02-15 15:18:53 -0500
commit2765b5c7cf6fa234fd86a14ee50597f8ed841c18 (patch)
tree3d57a8dc1a7f0bbc7988e0cf3e63ecf4375021b6 /models
parent632c27802c13f95ba95ba48eb6056d5af760183e (diff)
downloadgitea-2765b5c7cf6fa234fd86a14ee50597f8ed841c18.tar.gz
gitea-2765b5c7cf6fa234fd86a14ee50597f8ed841c18.zip
#2630 fix wrong user avatar link in webhook
Was using the wrong method and now uses the method which checks if the avatar link is relative or not.
Diffstat (limited to 'models')
-rw-r--r--models/action.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go
index 8d7dd6fa3d..3bcf999d9f 100644
--- a/models/action.go
+++ b/models/action.go
@@ -498,7 +498,7 @@ func CommitRepoAction(
payloadSender := &api.PayloadUser{
UserName: pusher.Name,
ID: pusher.Id,
- AvatarUrl: setting.AppUrl + pusher.RelAvatarLink(),
+ AvatarUrl: pusher.AvatarLink(),
}
switch opType {