1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 10:18:38 +00:00

resolved #310: hide fork to self (#323)

This commit is contained in:
Lunny Xiao
2016-12-01 18:51:50 +08:00
committed by GitHub
parent 31950cb262
commit 2343feadd4
2 changed files with 2 additions and 1 deletions

View File

@@ -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)