Remove vestigial user ID special cases.

This commit is contained in:
TLSM 2022-11-06 17:17:23 -05:00
parent a9b26caea2
commit fac6d492dc
No known key found for this signature in database
GPG key ID: E745A82778055C7E
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