From f0c9a97fda848fcdcc5d8a009c7e74ad81a20130 Mon Sep 17 00:00:00 2001 From: TLSM Date: Wed, 29 Jun 2022 16:38:59 -0400 Subject: [PATCH] Suppress notifs for posts from shadowed. --- files/routes/subs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/subs.py b/files/routes/subs.py index 2944d04453..5226011b18 100644 --- a/files/routes/subs.py +++ b/files/routes/subs.py @@ -353,7 +353,7 @@ def on_post_hole_entered(post, v): hole = post.subr.name # Notify hole followers - if not post.ghost and not post.private: + if not post.ghost and not post.private and not post.author.shadowbanned: text = f"/h/{hole} has a new " \ + f"post: [{post.title}]({post.shortlink}) by @{v.username}" cid = notif_comment(text, autojanny=True)