5 Commits
Author SHA1 Message Date
raucao ab3c2bffd6 Process and relay Nostr profile images server-side
Add a server-side API for avatar and header images: uploads are cropped with Vips (400x400 and 1500x500, GIFs passed through, EXIF stripped, transparency flattened to white) and stored as one pending attachment per field. Saving the profile flushes them to the configured Blossom server, authorized by a user-signed kind-24242 token whose x tags cover the stored hashes.
2026-11-19 21:58:08 +04:00
raucao 0901e76dee Report and log why a Nostr event is rejected
CI / Test (pull_request) Successful in 48s
The publish endpoint collapsed every validation failure into a generic "Invalid event", making a real-world rejection impossible to diagnose. Return and log the specific reason instead: public key mismatch, non-integer created_at/kind, disallowed kind, invalid id/signature, stale created_at, content/tags too large, or a malformed request.
2026-11-19 19:27:23 +04:00
raucao 5edbd3aed1 Add the Blossom media server list (kind 10063) 2026-11-18 22:19:46 +04:00
raucao 92a36cf3f7 Publish the relay list (NIP-65) from settings 2026-11-18 22:19:46 +04:00
raucao 29ed14a556 Add server-side publishing for user-signed Nostr events 2026-11-18 22:19:45 +04:00