mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-08-01 12:56:03 +00:00
Merge commit from fork
This commit is contained in:
@@ -53,7 +53,11 @@ const tick = () => {
|
|||||||
if (props.shuffle) {
|
if (props.shuffle) {
|
||||||
shuffle(feed.items);
|
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;
|
fetching.value = false;
|
||||||
key.value++;
|
key.value++;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -81,7 +81,11 @@ const tick = () => {
|
|||||||
window.fetch(fetchEndpoint.value, {})
|
window.fetch(fetchEndpoint.value, {})
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
.then((feed: Misskey.entities.FetchRssResponse) => {
|
.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;
|
fetching.value = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -121,7 +121,11 @@ const tick = () => {
|
|||||||
window.fetch(fetchEndpoint.value, {})
|
window.fetch(fetchEndpoint.value, {})
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
.then((feed: Misskey.entities.FetchRssResponse) => {
|
.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;
|
fetching.value = false;
|
||||||
key.value++;
|
key.value++;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user