forked from rDrama/rDrama
1
0
Fork 0

fix previous commit

master
Aevann1 2022-08-06 00:02:41 +02:00
parent 07608ee50a
commit 14a00b5357
1 changed files with 3 additions and 3 deletions

View File

@ -215,9 +215,6 @@ def notifications(v):
Comment.body_html.notlike('%<p>New site mention%<a href="https://old.reddit.com/r/%'),
).order_by(Notification.created_utc.desc())
if v.id == AEVANN_ID:
comment = comments.filter(Comment.sentto != 2)
if not (v and (v.shadowbanned or v.admin_level > 2)):
comments = comments.join(Comment.author).filter(User.shadowbanned == None)
@ -259,6 +256,9 @@ def notifications(v):
if c not in listing: listing.append(c)
if SITE == 'rdrama.net' and v.id == AEVANN_ID:
listing = [x for x in listing if x.sentto != 2]
g.db.commit()
if request.headers.get("Authorization"): return {"data":[x.json for x in listing]}