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:
@@ -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++;
|
||||
});
|
||||
|
||||
@@ -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++;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user