Remove vestigial user ID special cases.

This commit is contained in:
TLSM 2022-11-06 17:17:23 -05:00 committed by Ben Rog-Wilhelm
parent 010c56a35e
commit 9de6f20dea
13 changed files with 11 additions and 94 deletions

View file

@ -323,16 +323,6 @@ def api_comment(v):
g.db.add(vote)
c.voted = 1
if v.id == PIZZASHILL_ID:
for uid in PIZZA_VOTERS:
autovote = CommentVote(user_id=uid, comment_id=c.id, vote_type=1)
g.db.add(autovote)
v.coins += 3
v.truecoins += 3
g.db.add(v)
c.upvotes += 3
g.db.add(c)
if v.marseyawarded and parent_post.id not in ADMINISTRATORS and marseyaward_body_regex.search(body_html):
return {"error":"You can only type marseys!"}, 403