pwa: set TTL of push notification to 30 days (#70988) #210

Merged
bdauvergne merged 1 commits from wip/70988-pwa-utiliser-un-ttl-different-d into main 2024-02-23 11:17:21 +01:00
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ def notification(sender, instance=None, created=False, **kwargs):
data=message,
vapid_private_key=pwa_vapid_private_key,
vapid_claims=claims,
ttl=86400 * 30,
)
except pywebpush.WebPushException as e:
if 'Push failed: 410 Gone' in str(e):