forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-11-15 16:55:21 +02:00
parent 4dbc4096d3
commit b130139f3d
2 changed files with 8 additions and 0 deletions

View File

@ -743,6 +743,11 @@ class User(Base):
return output
@property
@lazy
def alt_ids(self):
return [x.id for x in self.alts]
@property
@lazy
def moderated_subs(self):

View File

@ -61,6 +61,9 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
if v.id == target.author.id:
coin_delta = 0
if target.author.id in v.alt_ids or v.id in target.author.alt_ids:
coin_delta = -1
coin_mult = 1
g.db.flush()