feat: use album create time for home ui and album listings

closes #182
closes #135

Co-authored-by: b-levin <windrider417@gmail.com>
This commit is contained in:
sentriz
2022-01-07 11:58:53 +00:00
committed by Senan Kelly
co-authored by b-levin
parent 9c1f9784be
commit 14a2668426
3 changed files with 21 additions and 5 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ func (c *Controller) ServeGetAlbumList(r *http.Request) *spec.Response {
user.ID)
q = q.Order("plays.count DESC")
case "newest":
q = q.Order("modified_at DESC")
q = q.Order("created_at DESC")
case "random":
q = q.Order(gorm.Expr("random()"))
case "recent":