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['ASSET_SUBMISSIONS'] = True
PERMS['ADMIN_ADD'] = 4
PERMS['CHAT'] = 3
SIDEBAR_THREAD = 37696
BANNER_THREAD = 37697

View File

@ -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