summaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-12-01 18:51:50 +0800
committerGitHub <noreply@github.com>2016-12-01 18:51:50 +0800
commit2343feadd434561d86b1273792d88f609a782114 (patch)
treea3696eda975c487081b89232e59bf884f29a51aa /routers/repo
parent31950cb26248ee006466e015340ade3d690581d9 (diff)
downloadgitea-2343feadd434561d86b1273792d88f609a782114.tar.gz
gitea-2343feadd434561d86b1273792d88f609a782114.zip
resolved #310: hide fork to self (#323)
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/pull.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index 389fcb0898..5e51fda495 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -62,6 +62,7 @@ func getForkRepository(ctx *context.Context) *models.Repository {
return nil
}
ctx.Data["ForkFrom"] = forkRepo.Owner.Name + "/" + forkRepo.Name
+ ctx.Data["ForkFromOwnerID"] = forkRepo.Owner.ID
if err := ctx.User.GetOrganizations(true); err != nil {
ctx.Handle(500, "GetOrganizations", err)