Skip to content

Commit

Permalink
Albums: Remove upstream workaround for empty month albums
Browse files Browse the repository at this point in the history
  • Loading branch information
kvalev committed Nov 16, 2021
1 parent 339599b commit 22a6b92
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions internal/query/albums.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/photoprism/photoprism/internal/form"
"github.com/photoprism/photoprism/internal/mutex"
"github.com/photoprism/photoprism/internal/search"
"github.com/photoprism/photoprism/pkg/txt"
)

// Albums returns a slice of albums.
Expand Down Expand Up @@ -46,15 +45,6 @@ func AlbumCoverByUID(uid string) (file entity.File, err error) {
}
}

// Automatically hide empty months.
if a.AlbumType == entity.AlbumMonth {
if err := a.Delete(); err != nil {
log.Errorf("album: %s (hide %s)", err, a.AlbumType)
} else {
log.Infof("album: %s hidden", txt.Quote(a.AlbumTitle))
}
}

return file, fmt.Errorf("no cover found")
}

Expand Down

0 comments on commit 22a6b92

Please sign in to comment.