diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-17 20:38:53 +0800 |
---|---|---|
committer | Antoine GIRARD <sapk@users.noreply.github.com> | 2020-01-17 13:38:53 +0100 |
commit | 918e6405904459a3a544541b3b351278bafa6a04 (patch) | |
tree | 7505ab03885f840ae601a9f04626911c9523e98c /models | |
parent | 9809fe27c41d1a639b2104a046e292215eed3953 (diff) | |
download | gitea-918e6405904459a3a544541b3b351278bafa6a04.tar.gz gitea-918e6405904459a3a544541b3b351278bafa6a04.zip |
Fix wrong identify poster on a migrated pull request when submi… (#9827) (#9831)
Diffstat (limited to 'models')
-rw-r--r-- | models/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go index 7c2eecadbc..a0353f0be1 100644 --- a/models/issue.go +++ b/models/issue.go @@ -429,7 +429,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 { |