Remove dead references to DEFAULT_IMAGE.

This commit is contained in:
Ben Rog-Wilhelm 2022-07-26 03:35:55 -05:00
parent 42412ed40b
commit 2595ed7fc0

View file

@ -91,8 +91,6 @@ def api_vote_post(post_id, new, v):
# we'll be saving later anyway, so don't bother doing so here # we'll be saving later anyway, so don't bother doing so here
else: else:
# create new vote data # create new vote data
DEFAULT_IMAGE = '/assets/images/default-profile-pic.webp'
vote = Vote( vote = Vote(
user_id=v.id, user_id=v.id,
vote_type=new, vote_type=new,
@ -166,8 +164,6 @@ def api_vote_comment(comment_id, new, v):
# we'll be saving later anyway, so don't bother doing so here # we'll be saving later anyway, so don't bother doing so here
else: else:
# create new vote data # create new vote data
DEFAULT_IMAGE = '/assets/images/default-profile-pic.webp'
vote = CommentVote( vote = CommentVote(
user_id=v.id, user_id=v.id,
vote_type=new, vote_type=new,