From d331c8700dc67843cfdabd39aa1c1c76a5ef5d61 Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Thu, 14 Oct 2021 10:45:32 +0300 Subject: [PATCH] feat: add thread refresh after posting --- controllers/threads_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/threads_controller.go b/controllers/threads_controller.go index 2e04728..67b4e73 100644 --- a/controllers/threads_controller.go +++ b/controllers/threads_controller.go @@ -331,5 +331,5 @@ func UpdateThread(c *gin.Context) { tx.Commit(context.TODO()) - c.Redirect(http.StatusFound, "/"+strconv.Itoa(threadID)) + c.Header("Refresh", "0") }