From 05841262aae7249e38a3468123eec85b075dc8bf Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Mon, 5 Dec 2016 16:42:01 +0100 Subject: [PATCH] outdated comments: flip the logic of comment invalidation to show comments if invalidation is turned on. --- rhodecode/model/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhodecode/model/comment.py b/rhodecode/model/comment.py index 46aef653..21bcfa1d 100644 --- a/rhodecode/model/comment.py +++ b/rhodecode/model/comment.py @@ -377,7 +377,7 @@ class ChangesetCommentsModel(BaseModel): elif pull_request: pull_request = self.__get_pull_request(pull_request) - if ChangesetCommentsModel.use_outdated_comments(pull_request): + if not ChangesetCommentsModel.use_outdated_comments(pull_request): q = self._visible_inline_comments_of_pull_request(pull_request) else: q = self._all_inline_comments_of_pull_request(pull_request)