mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-23 22:03:01 +00:00
only override commentsort on post page. fixes #107
This commit is contained in:
parent
9775db753f
commit
0c9f2df5fd
|
@ -630,6 +630,9 @@ func GetPost(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
|||
Render(w, "block.html", state)
|
||||
return
|
||||
}
|
||||
if len(m["sort"]) > 0 {
|
||||
state.CommentSort = m["sort"][0]
|
||||
}
|
||||
state.GetComments()
|
||||
Render(w, "index.html", state)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue