From: Michael Tremer Date: Thu, 8 May 2014 11:55:12 +0000 (+0200) Subject: planet: Only publish articles that are actually published. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8570acc8896bffd4ac7d173f63103898368fa76b;p=ipfire.org.git planet: Only publish articles that are actually published. --- diff --git a/webapp/backend/planet.py b/webapp/backend/planet.py index e063d3bd..1c51b5bf 100644 --- a/webapp/backend/planet.py +++ b/webapp/backend/planet.py @@ -155,6 +155,9 @@ class Planet(Object): clauses.append("status = %s") args.append(status) + if status == "published": + clauses.append("published <= NOW()") + if author_id: clauses.append("author_id = %s") args.append(author_id)