1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-28 06:24:38 +02:00

Merge commit from fork

This commit is contained in:
かっこかり
2026-07-28 11:11:56 +09:00
committed by GitHub
parent a12ee2e5d7
commit 2509a28813
3 changed files with 15 additions and 3 deletions

View File

@@ -53,7 +53,11 @@ const tick = () => {
if (props.shuffle) {
shuffle(feed.items);
}
items.value = feed.items;
items.value = feed.items.filter((item) => {
if (!item.link) return false;
const itemUrl = new URL(item.link);
return ['http:', 'https:'].includes(itemUrl.protocol);
});
fetching.value = false;
key.value++;
});

View File

@@ -81,7 +81,11 @@ const tick = () => {
window.fetch(fetchEndpoint.value, {})
.then(res => res.json())
.then((feed: Misskey.entities.FetchRssResponse) => {
rawItems.value = feed.items;
rawItems.value = feed.items.filter((item) => {
if (!item.link) return false;
const itemUrl = new URL(item.link);
return ['http:', 'https:'].includes(itemUrl.protocol);
});
fetching.value = false;
});
};

View File

@@ -121,7 +121,11 @@ const tick = () => {
window.fetch(fetchEndpoint.value, {})
.then(res => res.json())
.then((feed: Misskey.entities.FetchRssResponse) => {
rawItems.value = feed.items;
rawItems.value = feed.items.filter((item) => {
if (!item.link) return false;
const itemUrl = new URL(item.link);
return ['http:', 'https:'].includes(itemUrl.protocol);
});
fetching.value = false;
key.value++;
});