X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/700b6dec7e4d655fee91e26f9757442162047281..508b758ebf7d03317c1f1a14ba6006dd83eedd08:/forum/actions/meta.py diff --git a/forum/actions/meta.py b/forum/actions/meta.py index f5c12cd..a964ef1 100644 --- a/forum/actions/meta.py +++ b/forum/actions/meta.py @@ -97,10 +97,10 @@ class FlagAction(ActionProxy): flag.save() self.node.reset_flag_count_cache() - if self.node.flag_count == int(settings.FLAG_COUNT_TO_HIDE_POST): + if self.node.flag_count >= int(settings.FLAG_COUNT_TO_HIDE_POST): self.repute(self.node.author, -int(settings.REP_LOST_BY_FLAGGED_3_TIMES)) - if self.node.flag_count == int(settings.FLAG_COUNT_TO_DELETE_POST): + if self.node.flag_count >= int(settings.FLAG_COUNT_TO_DELETE_POST): self.repute(self.node.author, -int(settings.REP_LOST_BY_FLAGGED_5_TIMES)) if not self.node.nis.deleted: DeleteAction(node=self.node, user=self.user, extra="BYFLAGGED").save()