# HG changeset patch # User Marcin Kuzminski # Date 2016-12-05 15:42:01 # Node ID a1feec12a3f62a16ed5ff88c78759d027e16eb00 # Parent dba49df0d5f4c4d9bd9cd98f14f1a1cedd89865d outdated comments: flip the logic of comment invalidation to show comments if invalidation is turned on. diff --git a/rhodecode/model/comment.py b/rhodecode/model/comment.py --- 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)