From 63773791443ea203f13b523549e0a608981c1d5f Mon Sep 17 00:00:00 2001 From: Tobias Johansson Date: Wed, 28 Nov 2018 16:58:24 +0100 Subject: [PATCH] Fix T58116: Timeline does not exclude Posts with 'pending' status --- pillar/api/timeline.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pillar/api/timeline.py b/pillar/api/timeline.py index f566022d..5731ff39 100644 --- a/pillar/api/timeline.py +++ b/pillar/api/timeline.py @@ -46,6 +46,7 @@ class SearchHelper: created = {'_created': {'$gt': continue_from}} return {'_deleted': {'$ne': True}, 'node_type': {'$in': ['asset', 'post']}, + 'properties.status': {'$eq': 'published'}, 'project': {'$in': self._project_ids}, **created, }