From 9cea919e98f8aed15c23f40092601eacdff412c5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 19 Mar 2023 10:34:54 +0200 Subject: [PATCH] dont force tempchuds to see chudrama on their feed --- files/classes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/user.py b/files/classes/user.py index 5eda4fee0..c2f529b52 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -350,7 +350,7 @@ class User(Base): def all_blocks(self): stealth = set([x[0] for x in g.db.query(Sub.name).filter_by(stealth=True).all()]) stealth = stealth - set([x[0] for x in g.db.query(SubJoin.sub).filter_by(user_id=self.id).all()]) - if self.agendaposter: stealth = stealth - {'chudrama'} + if self.agendaposter == 1: stealth = stealth - {'chudrama'} return list(stealth) + [x[0] for x in g.db.query(SubBlock.sub).filter_by(user_id=self.id).all()]