Fix wrong identify poster on a migrated pull request when submi… (#9827) (#9830)

This commit is contained in:
Lunny Xiao authored and Antoine GIRARD committed 2020-01-17 13:38:11 +01:00
1 parent f766719895
commit 69a2a29c33
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -438,7 +438,7 @@ func (issue *Issue) HashTag() string {
// IsPoster returns true if given user by ID is the poster.
func (issue *Issue) IsPoster(uid int64) bool {
return issue.PosterID == uid
return issue.OriginalAuthorID == 0 && issue.PosterID == uid
}
func (issue *Issue) hasLabel(e Engine, labelID int64) bool {