diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-11-04 14:51:47 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-11-04 14:51:47 -0400 |
commit | 01ff8ebe9a55e019e2b8f02bc2336a7c3d3c8d60 (patch) | |
tree | 34c32657c32e92032de4e78c41bdad8f622761eb /askbot/auth.py | |
parent | 2ed72c554cbada913b9c344d2224eb0d33502f5f (diff) | |
download | askbot-01ff8ebe9a55e019e2b8f02bc2336a7c3d3c8d60.tar.gz askbot-01ff8ebe9a55e019e2b8f02bc2336a7c3d3c8d60.tar.bz2 askbot-01ff8ebe9a55e019e2b8f02bc2336a7c3d3c8d60.zip |
changed Activity model to prepare for some feature changes, bug fix in post flagging
Diffstat (limited to 'askbot/auth.py')
-rw-r--r-- | askbot/auth.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/askbot/auth.py b/askbot/auth.py index e0f314c1..4a1602e5 100644 --- a/askbot/auth.py +++ b/askbot/auth.py @@ -69,6 +69,12 @@ def onFlaggedItem(item, post, user, timestamp=None): ) reputation.save() + signals.flag_offensive.send( + sender=post.__class__, + instance=post, + mark_by=user + ) + #todo: These should be updated to work on same revisions. if post.offensive_flag_count == askbot_settings.MIN_FLAGS_TO_HIDE_POST: post.author.reputation = \ @@ -114,11 +120,6 @@ def onFlaggedItem(item, post, user, timestamp=None): #post.deleted_at = timestamp #post.deleted_by = Admin post.save() - signals.flag_offensive.send( - sender=post.__class__, - instance=post, - mark_by=user - ) @transaction.commit_on_success def onAnswerAccept(answer, user, timestamp=None): |