pull/195/head
Aevann 2023-08-20 05:14:32 +03:00
parent b86f6fa1f7
commit 81e8d09cd1
2 changed files with 2 additions and 2 deletions

View File

@ -388,7 +388,7 @@ class User(Base):
@property
@lazy
def is_votes_real(self):
def has_real_votes(self):
if self.patron: return True
if self.is_permabanned or self.shadowbanned: return False
if self.chud: return False

View File

@ -76,7 +76,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
elif new != 0:
imlazy = 3
real = new == -1 or (not alt and v.is_votes_real)
real = new == -1 or (not alt and v.has_real_votes)
vote = None
if vote_cls == Vote:
vote = Vote(user_id=v.id,