forked from MarseyWorld/MarseyWorld
restore chat for rdrama
parent
736acc094b
commit
30dd9bc5d5
|
@ -679,7 +679,6 @@ if SITE == 'rdrama.net':
|
|||
FEATURES['USERS_PERMANENT_WORD_FILTERS'] = True
|
||||
FEATURES['ASSET_SUBMISSIONS'] = True
|
||||
PERMS['ADMIN_ADD'] = 4
|
||||
PERMS['CHAT'] = 3
|
||||
|
||||
SIDEBAR_THREAD = 37696
|
||||
BANNER_THREAD = 37697
|
||||
|
|
|
@ -106,17 +106,17 @@ def speak(data, v):
|
|||
|
||||
typing = []
|
||||
|
||||
if SITE == 'rdrama.net':
|
||||
title = f'New chat message from @{v.username}'
|
||||
notifbody = text
|
||||
url = f'{SITE_FULL}/chat'
|
||||
# if SITE == 'rdrama.net':
|
||||
# title = f'New chat message from @{v.username}'
|
||||
# notifbody = text
|
||||
# url = f'{SITE_FULL}/chat'
|
||||
|
||||
admin_ids = [x[0] for x in g.db.query(User.id).filter(
|
||||
User.id != v.id,
|
||||
User.admin_level >= PERMS['CHAT'],
|
||||
).all()]
|
||||
# admin_ids = [x[0] for x in g.db.query(User.id).filter(
|
||||
# User.id != v.id,
|
||||
# User.admin_level >= PERMS['CHAT'],
|
||||
# ).all()]
|
||||
|
||||
push_notif(admin_ids, title, notifbody, url)
|
||||
# push_notif(admin_ids, title, notifbody, url)
|
||||
|
||||
return '', 204
|
||||
|
||||
|
|
Loading…
Reference in New Issue