From 047571ae579e465708c301d0d3e1b5eea3a7a394 Mon Sep 17 00:00:00 2001 From: TLSM Date: Wed, 9 Nov 2022 18:31:29 -0500 Subject: [PATCH] Revert "ranking: don't progstack every single post" This reverts commit 7011c85313d3b7c26292d22bb499a8a38f656036. --- files/routes/votes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index bf622d03a..3e1b13a9b 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -152,7 +152,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): elif len(target.body) > 2000: mul = 1 + len(target.body)/5000 - mul = max(mul, 2) + mul = min(mul, 2) target.realupvotes *= mul g.db.add(target)