aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-25 03:35:26 -0500
committerUnknwon <u@gogs.io>2017-02-27 22:48:18 -0500
commitb06f2997489d58cc5a4375044e378c0565ea09d4 (patch)
treefd02710adc4ed574fe28aa173b2f02ac68bd6568 /routers/repo/repo.go
parentbeea014343251fc9f379f996553c0b8030723464 (diff)
webhook: add fork event
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r--routers/repo/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 496f8e73..8a32f214 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -109,7 +109,7 @@ func CreatePost(ctx *context.Context, f form.CreateRepo) {
ctx.Data["Licenses"] = models.Licenses
ctx.Data["Readmes"] = models.Readmes
- ctxUser := checkContextUser(ctx, f.Uid)
+ ctxUser := checkContextUser(ctx, f.UserID)
if ctx.Written() {
return
}