diff --git a/models/action.go b/models/action.go index 8d7dd6fa3d75..3bcf999d9f8a 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 { diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go index 458670ad2f15..a1b3633043a9 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 {