]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/actions/meta.py
Fix in the retag template.
[osqa.git] / 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