From 47fdc8e870a410aa2bd8d1368cb1441163719867 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 28 Jan 2023 14:01:18 +0200 Subject: [PATCH] fix this https://stupidpol.site/post/142838/woke-ouroboros/3492136#context --- files/helpers/actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index e2f982c84..6723b4c2f 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -71,7 +71,7 @@ def execute_snappy(post:Submission, v:User): body = random.choice(SNAPPY_CHOICES).strip() if body.startswith('▼') or body.startswith(':#marseydownvote'): - body = body[1:] + if body.startswith('▼'): body = body[1:] vote = Vote(user_id=SNAPPY_ID, vote_type=-1, submission_id=post.id, @@ -86,7 +86,7 @@ def execute_snappy(post:Submission, v:User): flag = Flag(post_id=post.id, user_id=SNAPPY_ID, reason='Retard') g.db.add(flag) elif body.startswith('▲') or body.startswith(':#marseyupvote'): - body = body[1:] + if body.startswith('▲'): body = body[1:] vote = Vote(user_id=SNAPPY_ID, vote_type=1, submission_id=post.id,