mirror of
https://github.com/rystaf/mlmym.git
synced 2024-09-18 19:55:18 +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)
|
_, err := state.Client.MarkPostAsRead(context.Background(), post)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
} else if r.FormValue("xhr") != "" {
|
w.WriteHeader(http.StatusBadRequest)
|
||||||
|
}
|
||||||
|
if r.FormValue("xhr") != "" {
|
||||||
w.Write([]byte{})
|
w.Write([]byte{})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue