master
Aevann1 2022-03-05 23:00:01 +02:00
parent 18e1f81f64
commit ddc7f2d52d
1 changed files with 1 additions and 0 deletions

View File

@ -583,6 +583,7 @@ class User(Base):
posts = g.db.query(Subscription.submission_id).filter_by(user_id=self.id).all()
return [x[0] for x in posts]
@property
@lazy
def userblocks(self):
return [x[0] for x in g.db.query(UserBlock.target_id).filter_by(user_id=v.id).all()] + [x[0] for x in g.db.query(UserBlock.user_id).filter_by(target_id=v.id).all()]