From 4ff52a8af087a0939ef966e29318674f209c7fb1 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Thu, 20 Sep 2018 19:03:57 +0200 Subject: [PATCH] Add post status to posts query for homepage --- cloud/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloud/routes.py b/cloud/routes.py index c33f967..4c9a985 100644 --- a/cloud/routes.py +++ b/cloud/routes.py @@ -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'},