1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 22:25:50 +02:00

perf(backend): parse5をやめて軽量な実装にし、メモリ削減・高速化 (#16892)

* wip

* test

* Revert "test"

This reverts commit b7c5ae7214.

* Update MfmService.ts
This commit is contained in:
syuilo
2025-11-29 21:19:55 +09:00
committed by GitHub
parent cad93071da
commit 4bdbe794a6
4 changed files with 80 additions and 81 deletions

View File

@@ -120,7 +120,7 @@ async function discoverClientInformation(logger: Logger, httpRequestService: Htt
}
const text = await res.text();
const fragment = htmlParser.parse(text);
const fragment = htmlParser.parse(`<div>${text}</div>`);
redirectUris.push(...[...fragment.querySelectorAll('link[rel=redirect_uri][href]')].map(el => el.attributes.href));