summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askbot/models/question.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/models/question.py b/askbot/models/question.py
index 685c3c9e..2ce7d124 100644
--- a/askbot/models/question.py
+++ b/askbot/models/question.py
@@ -1252,7 +1252,7 @@ class Thread(models.Model):
#put published answers first
#todo: there may be > 1 enquirers
published_answer_ids = list()
- if self.is_moderated() and user != question_post.author:
+ if question_post and question_post.is_approved() == False and user != question_post.author:
#if moderated - then author is guaranteed to be the
#limited visibility enquirer
published_answer_ids = self.posts.get_answers(