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:
committed by
Senan Kelly
co-authored by
b-levin
parent
9c1f9784be
commit
14a2668426
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user