forked from MarseyWorld/MarseyWorld
sneed
parent
4dbc4096d3
commit
b130139f3d
|
@ -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):
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue