forked from rDrama/rDrama
1
0
Fork 0

fix phantom notifications

master
Aevann1 2022-07-30 00:32:26 +02:00
parent 527bae24f9
commit 73e26f1946
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ class User(Base):
Comment.is_banned == False, Comment.deleted_utc == 0)
if not self.shadowbanned and self.admin_level < 3:
notifs = notifs.join(Notification.user).filter(User.shadowbanned == None)
notifs = notifs.join(Comment.author).filter(User.shadowbanned == None)
return notifs.count() + self.post_notifications_count