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