misskey/packages/backend
Julia d10fdfe973
Merge commit from fork
* SP-2025-03.1 always wrap icon&thumbnail URLs

if they're not HTTP URLs, the frontend won't be able to display them
anyway (`<img src="mailto:…">` or '<div stile="background-image:
url(nntp:…)">` aren't going to work!), so let's always run them through the
media proxy, which will fail harder (fetching a `javascript:` URL
won't do anything in the backend, might do something in the frontend)
and will always protect the client's address in cases like `gemini:`
where the browser could try to fetch

* SP-2025-03.2 use object binding for more styles

interpolating a random (remote-controlled!) string into a `style`
attribute is a bad idea; using VueJS object binding, we should get
proper quoting and therefore safe parse failures instead of CSS
injections / XSS

* SP-2025-03.3 slightly more robust "self" URL handling

parse URLs instead of treating them as strings; this is still not
perfect, but the `URL` class only handles full URLs, not relative
ones, so there's so way to ask it "give me a URL object that
represents this resource relative to this base URL"

notice that passing very weird URLs to `MkUrl` and `MkUrlPreview` will
break the frontend (in dev mode) because there's an untrapped `new
URL(…)` that may explode; production builds seem to safely ignore the
error, though

---------

Co-authored-by: dakkar <dakkar@thenautilus.net>
2025-04-29 08:15:54 +09:00
..
.vscode Update settings.json 2022-04-15 21:33:00 +09:00
assets enhance(backend): notify new login (#14673) 2024-10-03 15:06:04 +09:00
migration enhance(backend): DB note (userId) インデクス -> (userId, id) 複合インデクスにする (#15879) 2025-04-23 14:29:42 +09:00
nsfw-model feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00
scripts fix(backend): 起動前の疎通チェックが機能しなくなっていた問題を修正 (#15043) 2024-11-24 20:43:47 +09:00
src Merge commit from fork 2025-04-29 08:15:54 +09:00
test fix: 添付ファイルのあるリクエストを受けたときの初動を改善 (#15896) 2025-04-29 08:15:09 +09:00
test-federation fix(test): fix federation test (#15900) 2025-04-28 11:24:26 +09:00
test-server chore: update `.swcrc` schema link (#15428) 2025-02-08 17:21:32 +09:00
.madgerc Create .madgerc 2022-09-20 01:04:08 +09:00
.swcrc fix: swcのjson-schemaのurlを変更 (#15409) 2025-02-07 02:36:58 +00:00
README.md chore: ✌️ 2022-12-24 14:39:17 +09:00
eslint.config.js test(backend): add federation test (#14582) 2024-10-15 13:37:00 +09:00
jest.config.cjs enhance(backend): テストの高速化 (#12939) 2024-01-08 17:43:52 +09:00
jest.config.e2e.cjs enhance(backend): テストの高速化 (#12939) 2024-01-08 17:43:52 +09: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
jsconfig.json use eslint 2021-11-12 10:35:41 +09:00
ormconfig.js fix: postgre -> postgres (#9814) 2023-02-07 19:50:38 +09:00
package.json fix: 添付ファイルのあるリクエストを受けたときの初動を改善 (#15896) 2025-04-29 08:15:09 +09:00
tsconfig.json update deps (#11764) 2023-09-04 13:33:38 +09:00

README.md

Misskey Backend