Revert "ranking: don't progstack every single post"

This reverts commit 7011c85313.
remotes/1693176582716663532/tmp_refs/heads/watchparty
Snakes 2022-11-09 18:31:29 -05:00
parent 7011c85313
commit 047571ae57
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 1 additions and 1 deletions

View File

@ -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)