mistykey/packages/backend
наб c6e4c9294f
Allow for sending announcement mails with List-Unsubscribe:
Per https://datatracker.ietf.org/doc/html/rfc8058,
we send "announcement" mails with
  List-Unsubscribe: <${apiUrl}/unsubscribe/${userId}/${oneClickUnsubscribeToken}>
  List-Unsubscribe-Post: List-Unsubscribe=One-Click
and handle
  POST /api/unsubscribe/:user/:token => this unsubscribes
  GET  /api/unsubscribe/:user/:token => 302 /unsubscribe/:user/:token
  GET  /unsubscribe/:user/:token     => user-visible page with clickthrough confirmation

In this configuration, compatible MUAs will show an "unsubscribe" button
that, when clicked, will POST to the URL directly

Less-compatible MUAs (and scanners) will open the page directly
which will redirect to a click-though; interactive users will be able to
unsubscribe, scanners won't unsubscribe by accident

Nothing /actually/ sends non-reactive mails,
so this is never used at this time

Closes #854
2025-07-27 18:29:16 +02:00
..
.vscode
assets Merge tag '2024.10.1' into feature/2024.10 2024-11-08 15:52:37 +00:00
migration Allow for sending announcement mails with List-Unsubscribe: 2025-07-27 18:29:16 +02:00
scripts fix typo in check_connect.js 2025-04-01 16:07:36 -04:00
src Allow for sending announcement mails with List-Unsubscribe: 2025-07-27 18:29:16 +02:00
test merge: Improve URL validation (!1155) 2025-07-27 14:21:20 +00:00
test-federation Merge branch 'develop' into upstream/2025.5.0 2025-06-10 14:02:32 +01:00
test-server enable TypeScript incremental mode to speed up IDEs 2025-05-28 21:31:39 -04:00
.madgerc
.swcrc fix: swcのjson-schemaのurlを変更 (#15409) 2025-02-07 02:36:58 +00:00
eslint.config.js fix linting in backend 2025-05-13 11:56:10 +01:00
jest.config.cjs enhance(backend): テストの高速化 (#12939) 2024-01-08 17:43:52 +09:00
jest.config.e2e.cjs tweak jest e2e config 2025-06-10 17:10:45 +01:00
jest.config.fed.cjs test(backend): add federation test (#14582) 2024-10-15 13:37:00 +09:00
jest.config.unit.cjs enhance(backend): テストの高速化 (#12939) 2024-01-08 17:43:52 +09:00
jest.js fix: jest.js exits with zero value even if underlying jest exited with non-zero value (#16111) 2025-05-30 18:22:59 +01:00
jsconfig.json
ormconfig.js merge: misskey 2025.5.0 (!1028) 2025-06-29 09:54:12 +00:00
package.json Merge branch 'develop' into upstream/2025.5.0 2025-06-20 10:44:34 +01:00
README.md
tsconfig.json enable TypeScript incremental mode to speed up IDEs 2025-05-28 21:31:39 -04:00

Misskey Backend