diff --git a/files/helpers/can_see.py b/files/helpers/can_see.py index e433da0c9..173f429bb 100644 --- a/files/helpers/can_see.py +++ b/files/helpers/can_see.py @@ -15,6 +15,8 @@ def can_see(user, obj): return False if any((x in obj.body.lower() for x in words_to_hide)): return False + if isinstance(obj, Post) and any((x in obj.title.lower() for x in words_to_hide)): + return False if not can_see(user, obj.author): return False if user and user.id == obj.author_id: return True