forked from MarseyWorld/MarseyWorld
fix previous commit
parent
07608ee50a
commit
14a00b5357
|
@ -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]}
|
||||
|
|
Loading…
Reference in New Issue