Added soundtrack comments

This commit is contained in:
2018-10-29 11:30:23 +09:00
parent f4f1531b8b
commit ecceb415ca
7 changed files with 41 additions and 19 deletions

View File

@ -20,5 +20,10 @@ func Get(ctx *aero.Context) string {
}
ctx.Data = getOpenGraph(ctx, track)
return ctx.HTML(components.SoundTrackPage(track, user))
// Comments
posts := track.Posts()
arn.SortPostsLatestFirst(posts)
return ctx.HTML(components.SoundTrackPage(track, posts, user))
}