This commit is contained in:
Aevann1 2022-02-24 20:31:28 +02:00
parent e395ae983c
commit 85dac69dcb
26 changed files with 72 additions and 62 deletions

View file

@ -41,7 +41,7 @@ def notifications(v):
messages = request.values.get('messages')
modmail = request.values.get('modmail')
posts = request.values.get('posts')
if modmail and v.admin_level > 1:
if modmail and v.admin_level > 2:
comments = g.db.query(Comment).filter(Comment.sentto==2).order_by(Comment.id.desc()).offset(25*(page-1)).limit(26).all()
next_exists = (len(comments) > 25)
comments = comments[:25]