dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit d2cbe0c8c27df94d6958bd2e2c2ff80ea09e64f2
parent 4053747ce7070a8c291be22c3189cfdd07ca7636
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat, 10 Jun 2023 04:35:20 -0700

cleanup

Diffstat:
Mpkg/web/handlers/api/v1/handlers.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pkg/web/handlers/api/v1/handlers.go b/pkg/web/handlers/api/v1/handlers.go @@ -394,7 +394,8 @@ func ChatDeleteMessageHandler(c echo.Context) error { } if err := msg.UserCanDeleteErr(*authUser); err != nil { - return err + logrus.Error(err) + return c.Redirect(http.StatusFound, c.Request().Referer()) } // Audit when moderator/admin deletes a message he doesn't own