From 73d0afa06a93fac2528f07877c3620ae18fbddde Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 6 Oct 2021 01:44:38 +0200 Subject: [PATCH] sdfds --- files/routes/comments.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/comments.py b/files/routes/comments.py index 9133283c1d..e7f9c55428 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -286,6 +286,7 @@ def api_comment(v): body=body[:10000] ) + c.upvotes = 1 g.db.add(c) g.db.flush() @@ -562,6 +563,7 @@ def api_comment(v): ) g.db.add(vote) + cache.delete_memoized(comment_idlist)