Add post status to posts query for homepage

This commit is contained in:
2018-09-20 19:03:57 +02:00
parent 218ba3831c
commit 4ff52a8af0

View File

@@ -50,7 +50,8 @@ def _homepage_context() -> dict:
'picture': 1,
'properties.url': 1,
'properties.content': 1,
'properties.attachments': 1
'properties.attachments': 1,
'properties.status': 1,
},
'where': {'node_type': 'post', 'properties.status': 'published'},