forked from MarseyWorld/MarseyWorld
hide ghost posts from post notifications
parent
bc927ef238
commit
077353c1f4
|
@ -481,7 +481,8 @@ class User(Base):
|
||||||
Submission.deleted_utc == 0,
|
Submission.deleted_utc == 0,
|
||||||
Submission.is_banned == False,
|
Submission.is_banned == False,
|
||||||
Submission.private == False,
|
Submission.private == False,
|
||||||
Submission.author_id != self.id
|
Submission.author_id != self.id,
|
||||||
|
Submission.ghost == False
|
||||||
).count()
|
).count()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -102,6 +102,7 @@ def notifications_posts(v):
|
||||||
Submission.is_banned == False,
|
Submission.is_banned == False,
|
||||||
Submission.private == False,
|
Submission.private == False,
|
||||||
Submission.author_id != v.id,
|
Submission.author_id != v.id,
|
||||||
|
Submission.ghost == False
|
||||||
).order_by(Submission.created_utc.desc()).offset(25 * (page - 1)).limit(26).all()]
|
).order_by(Submission.created_utc.desc()).offset(25 * (page - 1)).limit(26).all()]
|
||||||
|
|
||||||
next_exists = (len(listing) > 25)
|
next_exists = (len(listing) > 25)
|
||||||
|
|
Loading…
Reference in New Issue