forked from rDrama/rDrama
fix chat notifs on wpd
parent
79934bb182
commit
fa1d8ccab1
|
@ -147,7 +147,7 @@ def speak(data, v):
|
|||
g.db.delete(existing)
|
||||
g.db.flush()
|
||||
|
||||
if SITE_NAME == 'rDrama' and chat.id != 1: #disabled on wpd for now cuz it takes too long, need to put it in gevent
|
||||
if chat.id != 1: #disabled on wpd for now cuz it takes too long, need to put it in gevent
|
||||
alrdy_here = set(online[request.referrer].keys())
|
||||
memberships = g.db.query(ChatMembership).options(load_only(ChatMembership.user_id)).filter(
|
||||
ChatMembership.chat_id == chat_id,
|
||||
|
@ -164,7 +164,7 @@ def speak(data, v):
|
|||
url = f'{SITE_FULL}/chat/{chat.id}'
|
||||
push_notif(uids, title, body, url, chat_id=chat.id)
|
||||
|
||||
|
||||
if SITE_NAME == 'rDrama':
|
||||
notify_users = NOTIFY_USERS(chat_message.text, v)
|
||||
if chat_message.quotes:
|
||||
notify_users.add(chat_message.quoted_message.user_id)
|
||||
|
|
Loading…
Reference in New Issue