Fix T58116: Timeline does not exclude Posts with 'pending' status

This commit is contained in:
2018-11-28 16:58:24 +01:00
parent 82071bf922
commit 6377379144

View File

@@ -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,
}