dkforest

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

commit 75ce6e09baa00c573655fe7a763c21e129724fd7
parent 2c84be74339ee914b1c2bd4fb896d54224a88e2a
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 19 Jan 2023 22:46:24 -0800

fix purge command

Diffstat:
Mpkg/web/handlers/api/v1/slashInterceptor.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/pkg/web/handlers/api/v1/slashInterceptor.go b/pkg/web/handlers/api/v1/slashInterceptor.go @@ -1441,6 +1441,7 @@ func handlePurge(c *Command) (handled bool) { } database.NewAudit(*c.authUser, fmt.Sprintf("purge %s #%d", user.Username, user.ID)) _ = database.DeleteUserChatMessages(user.ID) + c.err = ErrRedirect return true } return