mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
website: hide older releases before 4.0.2
This commit is contained in:
parent
ee7d0cfeb5
commit
f228937e3e
@ -95,7 +95,12 @@ export default function ReleasesSection() {
|
||||
repo: "spotube",
|
||||
|
||||
}).then((res) => {
|
||||
setReleases(res.data);
|
||||
setReleases(
|
||||
res.data.filter((release) => {
|
||||
// Ignore all releases that were published before March 18 2025
|
||||
return new Date(release.published_at ?? new Date()) >= new Date("2025-03-18T00:00:00Z");
|
||||
})
|
||||
);
|
||||
})
|
||||
|
||||
}, [])
|
||||
|
Loading…
Reference in New Issue
Block a user