summaryrefslogtreecommitdiffstats
path: root/routers
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 /routers
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 'routers')
-rw-r--r--routers/repo/webhook.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go
index 458670ad2f..a1b3633043 100644
--- a/routers/repo/webhook.go
+++ b/routers/repo/webhook.go
@@ -364,7 +364,7 @@ func TestWebhook(ctx *middleware.Context) {
Sender: &api.PayloadUser{
UserName: ctx.User.Name,
ID: ctx.User.Id,
- AvatarUrl: setting.AppUrl + ctx.User.RelAvatarLink(),
+ AvatarUrl: ctx.User.AvatarLink(),
},
}
if err := models.PrepareWebhooks(ctx.Repo.Repository, models.HOOK_EVENT_PUSH, p); err != nil {