mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Refactor User.Id to User.ID
This commit is contained in:
		| @@ -122,7 +122,7 @@ func RepoAssignment(args ...bool) macaron.Handler { | ||||
| 		ctx.Repo.Owner = owner | ||||
|  | ||||
| 		// Get repository. | ||||
| 		repo, err := models.GetRepositoryByName(owner.Id, repoName) | ||||
| 		repo, err := models.GetRepositoryByName(owner.ID, repoName) | ||||
| 		if err != nil { | ||||
| 			if models.IsErrRepoNotExist(err) { | ||||
| 				ctx.Handle(404, "GetRepositoryByName", err) | ||||
| @@ -198,8 +198,8 @@ func RepoAssignment(args ...bool) macaron.Handler { | ||||
| 		ctx.Data["WikiCloneLink"] = repo.WikiCloneLink() | ||||
|  | ||||
| 		if ctx.IsSigned { | ||||
| 			ctx.Data["IsWatchingRepo"] = models.IsWatching(ctx.User.Id, repo.ID) | ||||
| 			ctx.Data["IsStaringRepo"] = models.IsStaring(ctx.User.Id, repo.ID) | ||||
| 			ctx.Data["IsWatchingRepo"] = models.IsWatching(ctx.User.ID, repo.ID) | ||||
| 			ctx.Data["IsStaringRepo"] = models.IsStaring(ctx.User.ID, repo.ID) | ||||
| 		} | ||||
|  | ||||
| 		// repo is bare and display enable | ||||
|   | ||||
		Reference in New Issue
	
	Block a user