From 2eb14876c3399608732201e51b563cefd539771c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 6 Mar 2026 22:47:25 -0800 Subject: 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 --- lib/dmNotifications.ts | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3