restore chat for rdrama

pull/90/head
Aevann 2023-01-20 02:12:36 +02:00
parent 736acc094b
commit 30dd9bc5d5
2 changed files with 9 additions and 10 deletions

View File

@ -679,7 +679,6 @@ if SITE == 'rdrama.net':
FEATURES['USERS_PERMANENT_WORD_FILTERS'] = True FEATURES['USERS_PERMANENT_WORD_FILTERS'] = True
FEATURES['ASSET_SUBMISSIONS'] = True FEATURES['ASSET_SUBMISSIONS'] = True
PERMS['ADMIN_ADD'] = 4 PERMS['ADMIN_ADD'] = 4
PERMS['CHAT'] = 3
SIDEBAR_THREAD = 37696 SIDEBAR_THREAD = 37696
BANNER_THREAD = 37697 BANNER_THREAD = 37697

View File

@ -106,17 +106,17 @@ def speak(data, v):
typing = [] typing = []
if SITE == 'rdrama.net': # if SITE == 'rdrama.net':
title = f'New chat message from @{v.username}' # title = f'New chat message from @{v.username}'
notifbody = text # notifbody = text
url = f'{SITE_FULL}/chat' # url = f'{SITE_FULL}/chat'
admin_ids = [x[0] for x in g.db.query(User.id).filter( # admin_ids = [x[0] for x in g.db.query(User.id).filter(
User.id != v.id, # User.id != v.id,
User.admin_level >= PERMS['CHAT'], # User.admin_level >= PERMS['CHAT'],
).all()] # ).all()]
push_notif(admin_ids, title, notifbody, url) # push_notif(admin_ids, title, notifbody, url)
return '', 204 return '', 204