fd
This commit is contained in:
parent
45cf5e4219
commit
521f16ba6b
2 changed files with 12 additions and 2 deletions
|
@ -17,10 +17,15 @@ def slash_post():
|
|||
def notifications(v):
|
||||
try: page = int(request.args.get('page', 1))
|
||||
except: page = 1
|
||||
all_ = request.args.get('all', False)
|
||||
messages = request.args.get('messages', False)
|
||||
modmail = request.args.get('modmail', False)
|
||||
posts = request.args.get('posts', False)
|
||||
if messages:
|
||||
if modmail and v.admin_level == 6:
|
||||
cids = v.notification_modmail(page=page)
|
||||
next_exists = (len(cids) == 26)
|
||||
cids = cids[:25]
|
||||
comments = get_comments(cids, v=v)
|
||||
elif messages:
|
||||
cids = v.notification_messages(page=page)
|
||||
next_exists = (len(cids) == 26)
|
||||
cids = cids[:25]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue