From edc8d70db0939709d7d4eff8a18fc2e02b106859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=98=E7=80=AC=E3=81=93=E3=81=93=E3=81=82?= Date: Thu, 21 Nov 2024 15:45:31 +0900 Subject: [PATCH] =?UTF-8?q?fix(backend):=20URL=E3=82=92=E3=83=87=E3=82=B3?= =?UTF-8?q?=E3=83=BC=E3=83=89=E3=81=97=E3=81=A6=E3=81=8B=E3=82=89=E3=83=AA?= =?UTF-8?q?=E3=82=AF=E3=82=A8=E3=82=B9=E3=83=88=E3=82=92=E9=80=81=E4=BF=A1?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/server/api/endpoints/fetch-rss.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/fetch-rss.ts b/packages/backend/src/server/api/endpoints/fetch-rss.ts index ba48b0119e93..ae6ad1b9dc29 100644 --- a/packages/backend/src/server/api/endpoints/fetch-rss.ts +++ b/packages/backend/src/server/api/endpoints/fetch-rss.ts @@ -7,6 +7,7 @@ import Parser from 'rss-parser'; import { Injectable } from '@nestjs/common'; import { Endpoint } from '@/server/api/endpoint-base.js'; import { HttpRequestService } from '@/core/HttpRequestService.js'; +import { URL } from 'url'; const rssParser = new Parser(); @@ -219,7 +220,7 @@ export default class extends Endpoint { // eslint- private httpRequestService: HttpRequestService, ) { super(meta, paramDef, async (ps, me) => { - const res = await this.httpRequestService.send(ps.url, { + const res = await this.httpRequestService.send(decodeURIComponent(ps.url), { method: 'GET', headers: { Accept: 'application/rss+xml, */*',