1 Commits
Author SHA1 Message Date
ZSCGRandGitHub 84543b12b6 Update idcflare.ts 2025-09-22 20:38:02 +08:00
+3 -3
View File
@@ -38,19 +38,19 @@ const hot = defineSource(async () => {
.map(k => ({
id: k.id,
title: k.title,
url: `https://linux.do/t/topic/${k.id}`,
url: `https://idcflare.com/t/topic/${k.id}`,
}))
})
const latest = defineSource(async () => {
const res = await myFetch<Res>("https://linux.do/latest.json?order=created")
const res = await myFetch<Res>("https://idcflare.com/latest.json?order=created")
return res.topic_list.topics
.filter(k => k.visible && !k.archived && !k.pinned)
.map(k => ({
id: k.id,
title: k.title,
pubDate: new Date(k.created_at).valueOf(),
url: `https://linux.do/t/topic/${k.id}`,
url: `https://idcflare.com/t/topic/${k.id}`,
}))
})