]> git.openstreetmap.org Git - osqa.git/commitdiff
Changing the statement that checks if the content has to be deleted/hidden. We should...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sun, 27 Mar 2011 16:25:04 +0000 (16:25 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sun, 27 Mar 2011 16:25:04 +0000 (16:25 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@900 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/actions/meta.py

index f5c12cdcc038449e40cc55a2c277c576177526b4..a964ef1db289ca0ec9171441046434c2d8f75c98 100644 (file)
@@ -97,10 +97,10 @@ class FlagAction(ActionProxy):
         flag.save()\r
         self.node.reset_flag_count_cache()\r
 \r
-        if self.node.flag_count == int(settings.FLAG_COUNT_TO_HIDE_POST):\r
+        if self.node.flag_count >= int(settings.FLAG_COUNT_TO_HIDE_POST):\r
             self.repute(self.node.author, -int(settings.REP_LOST_BY_FLAGGED_3_TIMES))\r
 \r
-        if self.node.flag_count == int(settings.FLAG_COUNT_TO_DELETE_POST):\r
+        if self.node.flag_count >= int(settings.FLAG_COUNT_TO_DELETE_POST):\r
             self.repute(self.node.author, -int(settings.REP_LOST_BY_FLAGGED_5_TIMES))\r
             if not self.node.nis.deleted:\r
                 DeleteAction(node=self.node, user=self.user, extra="BYFLAGGED").save()\r