mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-09 08:32:21 +00:00
use postids for MarkPostAsRead. fixes #106
This commit is contained in:
parent
7b88866454
commit
16f60211fb
|
@ -1340,7 +1340,7 @@ func UserOp(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
||||||
case "read_post":
|
case "read_post":
|
||||||
postid, _ := strconv.ParseInt(r.FormValue("postid"), 10, 64)
|
postid, _ := strconv.ParseInt(r.FormValue("postid"), 10, 64)
|
||||||
post := lemmy.MarkPostAsRead{
|
post := lemmy.MarkPostAsRead{
|
||||||
PostID: lemmy.NewOptional(postid),
|
PostIDs: lemmy.NewOptional([]int64{postid}),
|
||||||
Read: true,
|
Read: true,
|
||||||
}
|
}
|
||||||
if r.FormValue("submit") == "mark unread" {
|
if r.FormValue("submit") == "mark unread" {
|
||||||
|
|
Loading…
Reference in a new issue