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
@@ -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++;
});
+5 -1
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;
});
};
@@ -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++;
});