dkforest

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

commit 51baae59f8ef6b485f5eefcaffd0985506ef3395
parent 7917234ace6c4bb6f052cbd98caf9a7878bdec15
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 28 Dec 2023 23:01:33 -0500

fix autocorrect

Diffstat:
Mpkg/database/utils/processMessage.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/database/utils/processMessage.go b/pkg/database/utils/processMessage.go @@ -744,7 +744,7 @@ func ColorifyTaggedUsers(html string, getUsersByUsername getUsersByUsernameFn) ( minAu := activeUsers[0] for _, au := range activeUsers { lowerAu := strings.ToLower(string(au.Username)) - d := levenshtein.ComputeDistance(lowerS, lowerAu) + d := levenshtein.ComputeDistance(strings.TrimPrefix(lowerS, "@"), lowerAu) if d < minDist { minDist = d minAu = au