fix(frontend): follow-up of 2509a28 (#17815)

This commit is contained in:
かっこかり
2026-07-28 17:35:18 +09:00
committed by GitHub
parent 2509a28813
commit a44e419d5a
3 changed files with 4 additions and 3 deletions
@@ -30,6 +30,7 @@ SPDX-License-Identifier: AGPL-3.0-only
import { ref } from 'vue';
import * as Misskey from 'misskey-js';
import { useInterval } from '@@/js/use-interval.js';
import { url as baseUrl } from '@@/js/config.js';
import MkMarqueeText from '@/components/MkMarqueeText.vue';
import { shuffle } from '@/utility/shuffle.js';
@@ -55,7 +56,7 @@ const tick = () => {
}
items.value = feed.items.filter((item) => {
if (!item.link) return false;
const itemUrl = new URL(item.link);
const itemUrl = new URL(item.link, baseUrl);
return ['http:', 'https:'].includes(itemUrl.protocol);
});
fetching.value = false;
+1 -1
View File
@@ -83,7 +83,7 @@ const tick = () => {
.then((feed: Misskey.entities.FetchRssResponse) => {
rawItems.value = feed.items.filter((item) => {
if (!item.link) return false;
const itemUrl = new URL(item.link);
const itemUrl = new URL(item.link, base);
return ['http:', 'https:'].includes(itemUrl.protocol);
});
fetching.value = false;
@@ -123,7 +123,7 @@ const tick = () => {
.then((feed: Misskey.entities.FetchRssResponse) => {
rawItems.value = feed.items.filter((item) => {
if (!item.link) return false;
const itemUrl = new URL(item.link);
const itemUrl = new URL(item.link, base);
return ['http:', 'https:'].includes(itemUrl.protocol);
});
fetching.value = false;