diff options
-rw-r--r-- | askbot/models/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/askbot/models/__init__.py b/askbot/models/__init__.py index 6f8937b4..c92b894d 100644 --- a/askbot/models/__init__.py +++ b/askbot/models/__init__.py @@ -1909,7 +1909,12 @@ def record_post_update_activity( mentioned_users = newly_mentioned_users, exclude_list = [updated_by, ] ) - + #todo: fix this temporary spam protection plug + if created: + if not (updated_by.is_administrator() or updated_by.is_moderator()): + if updated_by.reputation < 15: + notification_subscribers = \ + [u for u in notification_subscribers if u.is_administrator()] send_instant_notifications_about_activity_in_post( update_activity = update_activity, post = post, |