mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
Member Settings / Notification Settings gets "ntfy phone notifications": a member pastes their ntfy topic's address, and an access token if the topic needs one, and each notification they get in WeKan - the same recipients, watching and muted activity kinds - also arrives in the ntfy app, with the board and card as the title, what happened as the message and a tap opening the card. It uses ntfy's JSON publishing, so a title in any language needs no header encoding, and goes through webhookFetch: the SSRF guard, Internal destinations for a self-hosted ntfy, the Powerbox on Sandstorm. An admin-only custom field value still reaches only board admins. One read per activity finds the recipients who turned it on; sending is deferred and best effort, so ntfy being down never touches e-mail or the tray. The address and token are a top-level user field, saved and read only through the member's own methods, not client-writable and never published. models/lib/ntfy.js parses topic addresses and builds the request; tests/ntfy.test.cjs covers the request, bad addresses, tokens with header injection, javascript: links, off, and that the setting is unpublished and sent only through webhookFetch. Documented in docs/Features/Notifications/ntfy.md. The new strings are English placeholders until the next translation pass. Thanks to xet7 ! Fixes #5148.