diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-11-06 15:04:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 09:04:21 +0200 |
commit | 35cc82abbf2315f05a5132115bc6e53786df6a3c (patch) | |
tree | bb3691948c5e5b216bd1a471a82b809cb439a0a8 /models/issue_comment.go | |
parent | 3c7908b51c78d549160597e6bc9c98930c6a25c9 (diff) | |
download | gitea-35cc82abbf2315f05a5132115bc6e53786df6a3c.tar.gz gitea-35cc82abbf2315f05a5132115bc6e53786df6a3c.zip |
Revert "Replies to outdated code comments should also be outdated (#13217)" (#13439)
This reverts commit 3cab3bee5750a12da9ef8a9ba5cbe3da00594921.
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r-- | models/issue_comment.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go index 7bcea40b93..a7e9c049bf 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -712,7 +712,6 @@ func createComment(e *xorm.Session, opts *CreateCommentOptions) (_ *Comment, err RefAction: opts.RefAction, RefIsPull: opts.RefIsPull, IsForcePush: opts.IsForcePush, - Invalidated: opts.Invalidated, } if _, err = e.Insert(comment); err != nil { return nil, err @@ -879,7 +878,6 @@ type CreateCommentOptions struct { RefAction references.XRefAction RefIsPull bool IsForcePush bool - Invalidated bool } // CreateComment creates comment of issue or commit. @@ -955,8 +953,6 @@ type FindCommentsOptions struct { ReviewID int64 Since int64 Before int64 - Line int64 - TreePath string Type CommentType } @@ -980,12 +976,6 @@ func (opts *FindCommentsOptions) toConds() builder.Cond { if opts.Type != CommentTypeUnknown { cond = cond.And(builder.Eq{"comment.type": opts.Type}) } - if opts.Line > 0 { - cond = cond.And(builder.Eq{"comment.line": opts.Line}) - } - if len(opts.TreePath) > 0 { - cond = cond.And(builder.Eq{"comment.tree_path": opts.TreePath}) - } return cond } @@ -1000,8 +990,6 @@ func findComments(e Engine, opts FindCommentsOptions) ([]*Comment, error) { sess = opts.setSessionPagination(sess) } - // WARNING: If you change this order you will need to fix createCodeComment - return comments, sess. Asc("comment.created_unix"). Asc("comment.id"). |