From 7f86a3413079506d88007d570c34bae80bff608f Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 6 Nov 2023 13:41:37 +0200 Subject: [PATCH] anti-farm --- files/routes/votes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/votes.py b/files/routes/votes.py index 236c4d23c..06d4c5fc7 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -36,6 +36,9 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): if v.id == target.author.id: coin_delta = 0 + if v.truescore < 10: + coin_delta = 0 + alt = False if target.author.id in [x.id for x in get_alt_graph(v.id)]: coin_delta = -1