mirror of https://github.com/go-gitea/gitea
Identify comment by original_id only
This commit is contained in:
parent
3d9b7edd35
commit
f7e94224d6
|
@ -328,7 +328,7 @@ func UpsertIssueComments(comments []*issues_model.Comment) error {
|
|||
}
|
||||
} else {
|
||||
if _, err := sess.NoAutoTime().Where(
|
||||
"issue_id = ? AND original_id = ?", comment.IssueID, comment.OriginalID,
|
||||
"original_id = ?", comment.IssueID, comment.OriginalID,
|
||||
).Update(comment); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue