forked from MarseyWorld/MarseyWorld
dont show notifications for posts the user himself makes in a hole they follow
parent
19ee55d27c
commit
65a98cd9fc
|
@ -490,7 +490,8 @@ class User(Base):
|
||||||
Submission.created_utc > self.last_viewed_post_notifs,
|
Submission.created_utc > self.last_viewed_post_notifs,
|
||||||
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
|
||||||
).count()
|
).count()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -94,7 +94,8 @@ def notifications_posts(v):
|
||||||
),
|
),
|
||||||
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 != v.id,
|
||||||
).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