fix(frontend): RSSウィジェットでURLエンコードを二重に行っている問題を修正 (#15272)

* don't double-url-encode rss urls

`url.searchParams.set()` already encodes the values passed!

(this is a partial revert of 0472d43ee9,
the change in `statusbar-rss.vue` was correct)

* Update Changelog

---------

Co-authored-by: dakkar <dakkar@thenautilus.net>
This commit is contained in:
かっこかり
2025-01-14 09:13:57 +09:00
committed by GitHub
parent d60c307c4e
commit d86c77260e
3 changed files with 4 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ const items = computed(() => rawItems.value.slice(0, widgetProps.maxEntries));
const fetching = ref(true);
const fetchEndpoint = computed(() => {
const url = new URL('/api/fetch-rss', base);
url.searchParams.set('url', encodeURIComponent(widgetProps.url));
url.searchParams.set('url', widgetProps.url);
return url;
});
const intervalClear = ref<(() => void) | undefined>();