dkforest

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

commit 5ecb5a946843fe4aac022036f70ef9a5d24c3220
parent ebc84f11522124aa2c1fbf8e7267d4327cdcf27f
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat, 30 Dec 2023 15:06:29 -0500

cleanup

Diffstat:
Mpkg/web/handlers/interceptors/slashInterceptor.go | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pkg/web/handlers/interceptors/slashInterceptor.go b/pkg/web/handlers/interceptors/slashInterceptor.go @@ -1606,8 +1606,7 @@ func handleToggleAutocomplete(c *command.Command) (handled bool) { func handleAfkCmd(c *command.Command) (handled bool) { if c.Message == "/afk" { - c.AuthUser.AFK = !c.AuthUser.AFK - c.AuthUser.DoSave(c.DB) + c.AuthUser.ToggleAFK(c.DB) c.Err = command.ErrRedirect return true }