This commit is contained in:
Aevann1 2022-01-15 08:01:39 +02:00
parent 54ea39c62d
commit 9c6ff97e4d
10 changed files with 14 additions and 15 deletions

View file

@ -14,7 +14,7 @@ from collections import Counter
site = environ.get("DOMAIN").strip()
beams_client = PushNotifications(instance_id=PUSHER_INSTANCE_ID, secret_key=PUSHER_KEY)
beams_client = PushNotifications(instance_id=PUSHER_ID, secret_key=PUSHER_KEY)
db = db_session()
@ -438,7 +438,7 @@ def message2(v, username):
try:
beams_client.publish_to_interests(
interests=[str(user.id)],
interests=[f'{request.host}{parent.author.id}'],
publish_body={
'web': {
'notification': {