fix /notifications/posts

pull/222/head
Aevann 2024-02-11 17:46:05 +02:00
parent aef27ec4ef
commit e20f9cb26f
1 changed files with 1 additions and 0 deletions

View File

@ -192,6 +192,7 @@ def notifications_posts(v):
Post.author_id != v.id,
Post.author_id.notin_(v.userblocks),
or_(Post.hole == None, Post.hole.notin_(v.hole_blocks)),
or_(*or_criteria),
).options(load_only(Post.id))
total = listing.count()