fix bug where attachment manager wouldn't appear due to cached reply data

This commit is contained in:
Azareal 2020-02-19 12:59:54 +10:00
parent 4e73a6e5b2
commit 71f7f20c2e
1 changed files with 1 additions and 0 deletions

View File

@ -130,6 +130,7 @@ func CreateReplySubmit(w http.ResponseWriter, r *http.Request, user c.User) c.Ro
return c.LocalErrorJSQ("Failed to add poll to reply", w, r, user, js) // TODO: Might need to be an internal error as it could leave phantom polls? return c.LocalErrorJSQ("Failed to add poll to reply", w, r, user, js) // TODO: Might need to be an internal error as it could leave phantom polls?
} }
} }
_ = c.Rstore.GetCache().Remove(reply.ID)
err = c.Forums.UpdateLastTopic(tid, user.ID, topic.ParentID) err = c.Forums.UpdateLastTopic(tid, user.ID, topic.ParentID)
if err != nil && err != sql.ErrNoRows { if err != nil && err != sql.ErrNoRows {