Also process entry[0]

This commit is contained in:
Peter Stuifzand 2018-03-28 02:02:16 +02:00
parent c8d4779e94
commit 3cc34dbfe8

View File

@ -313,6 +313,8 @@ func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
h.Backend.MarkRead(channel, uids)
} else if uids, e := values["entry[]"]; e {
h.Backend.MarkRead(channel, uids)
} else if uids, e := values["entry[0]"]; e {
h.Backend.MarkRead(channel, uids)
}
}
w.Header().Add("Content-Type", "application/json")