diff options
| author | Adam Soltys <[email protected]> | 2026-03-06 22:47:25 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-06 22:47:25 -0800 |
| commit | 2eb14876c3399608732201e51b563cefd539771c (patch) | |
| tree | c48651497bbabb4697b8cd8f49be47f5daf157e3 | |
| parent | be75abbef81e0081d4825e6039aaf51a2407a06d (diff) | |
| download | coinos-server-2eb14876c3399608732201e51b563cefd539771c.tar.gz coinos-server-2eb14876c3399608732201e51b563cefd539771c.zip | |
add server-side MLS user index and fix DM push VAPID
- Add lib/mls.ts: maintains Redis-backed index of MLS users with
background backfill and live subscription for kind 443 events
- Add /mls/users endpoint serving the directory to the UI
- Fix dmNotifications.ts: add setVapidDetails call so push delivery works
Co-Authored-By: Claude Opus 4.6 <[email protected]>
| -rw-r--r-- | lib/dmNotifications.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/dmNotifications.ts b/lib/dmNotifications.ts index 3f229842..afacfe0e 100644 --- a/lib/dmNotifications.ts +++ b/lib/dmNotifications.ts @@ -5,6 +5,10 @@ import { getUser } from "$lib/utils"; import { Relay } from "nostr-tools/relay"; import webpush from "web-push"; +if (config.vapid) { + webpush.setVapidDetails(`mailto:${config.support}`, config.vapid.pk, config.vapid.sk); +} + export const listenForDMs = async () => { try { const relay = await Relay.connect(config.nostr); |
