mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-25 14:49:07 +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