mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Fixed Poster/Commenter-bug and clean-up
This commit is contained in:
		| @@ -627,15 +627,13 @@ func ViewIssue(ctx *middleware.Context) { | |||||||
| 					break | 					break | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
| 			if !already_added { | 			if !already_added && !issue.IsPoster(comment.Poster.Id) { | ||||||
| 				participants = append(participants, comment.Poster) | 				participants = append(participants, comment.Poster) | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	ctx.Data["Participants"] = participants | 	ctx.Data["Participants"] = participants | ||||||
|  |  | ||||||
|  |  | ||||||
| 	ctx.Data["Issue"] = issue | 	ctx.Data["Issue"] = issue | ||||||
| 	ctx.Data["IsIssueOwner"] = ctx.Repo.IsAdmin() || (ctx.IsSigned && issue.IsPoster(ctx.User.Id)) | 	ctx.Data["IsIssueOwner"] = ctx.Repo.IsAdmin() || (ctx.IsSigned && issue.IsPoster(ctx.User.Id)) | ||||||
| 	ctx.Data["SignInLink"] = setting.AppSubUrl + "/user/login" | 	ctx.Data["SignInLink"] = setting.AppSubUrl + "/user/login" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user