dkforest

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

commit 9cd33dc6d2b78f910cd03a90e93b6e526a2a9758
parent 975591cfbea7f41318a5f814c5a12d8fa2b151ba
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Tue, 30 Jan 2024 19:42:04 -0800

allow messages that are just a link to a user profile

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

diff --git a/pkg/web/handlers/interceptors/slashInterceptor.go b/pkg/web/handlers/interceptors/slashInterceptor.go @@ -165,6 +165,9 @@ func (i SlashInterceptor) InterceptMsg(c *command.Command) { if !strings.HasPrefix(c.Message, "/") { return } + if strings.HasPrefix(c.Message, "/u/") { + return + } handled := handleUserCmd(c) || handlePrivateRoomCmd(c) || handlePrivateRoomOwnerCmd(c) ||