home: Hide specific instances from home page

This commit is contained in:
Tom Wiesing 2022-12-07 11:02:57 +01:00
parent 52dbfbf56e
commit a74149f4ef
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View file

@ -87,6 +87,10 @@ type LastEdit struct {
func (bs BundleStatistics) LastEdit() (le LastEdit) {
for _, bundle := range bs.Bundles {
time := bundle.LastEdit.Time()
// skip invalid times
if time.Unix() <= 0 {
continue
}
if time.After(le.Time) {
le.Valid = true
le.Time = time