Use Form for mark read

This commit is contained in:
Peter Stuifzand 2018-04-09 22:57:48 +02:00
parent a9530db9b2
commit 56ab0912e9

View File

@ -241,7 +241,7 @@ func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
method := values.Get("method")
if method == "mark_read" || r.PostForm.Get("method") == "mark_read" {
values = r.PostForm
values = r.Form
channel := values.Get("channel")
if uids, e := values["entry"]; e {
h.Backend.MarkRead(channel, uids)