mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-08 08:04:26 +00:00
read_post error
This commit is contained in:
parent
f63975f949
commit
b6a7a1e6d5
|
@ -1406,7 +1406,9 @@ func UserOp(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
|||
_, err := state.Client.MarkPostAsRead(context.Background(), post)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
} else if r.FormValue("xhr") != "" {
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
}
|
||||
if r.FormValue("xhr") != "" {
|
||||
w.Write([]byte{})
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue