summaryrefslogtreecommitdiffstats
path: root/askbot/models/question.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/models/question.py')
-rw-r--r--askbot/models/question.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/askbot/models/question.py b/askbot/models/question.py
index 039c37f2..f851e33c 100644
--- a/askbot/models/question.py
+++ b/askbot/models/question.py
@@ -224,15 +224,16 @@ class ThreadManager(BaseQuerySetManager):
#todo: this is handled in signal because models for posts
#are too spread out
- signals.post_updated.send(
- post=question,
- updated_by=author,
- newly_mentioned_users=parse_results['newly_mentioned_users'],
- timestamp=added_at,
- created=True,
- diff=parse_results['diff'],
- sender=question.__class__
- )
+ if revision.revision > 0:
+ signals.post_updated.send(
+ post=question,
+ updated_by=author,
+ newly_mentioned_users=parse_results['newly_mentioned_users'],
+ timestamp=added_at,
+ created=True,
+ diff=parse_results['diff'],
+ sender=question.__class__
+ )
return thread