From cb9f505c8fd96575ff77f924fcdd8b0e50981e82 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 25 Jan 2023 17:47:16 +0200 Subject: [PATCH] make blacklisting propagate --- files/routes/routehelpers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/files/routes/routehelpers.py b/files/routes/routehelpers.py index ec5acfcbf3..a147160c93 100644 --- a/files/routes/routehelpers.py +++ b/files/routes/routehelpers.py @@ -105,6 +105,12 @@ def check_for_alts(current:User, include_current_session=False): u.is_muted = current.is_muted g.db.add(u) + if u.blacklisted_by and not current.blacklisted_by: + current.blacklisted_by = u.blacklisted_by + g.db.add(current) + elif current.blacklisted_by and not u.blacklisted_by: + u.blacklisted_by = current.blacklisted_by + g.db.add(u) def execute_shadowban_viewers_and_voters(v:Optional[User], target:Union[Submission, Comment]): if not v or not v.shadowbanned: return