dkforest

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

commit acd7923f61ed0dc87675f9355378794dae1c2646
parent d3c1f2b80e753f96ce5c9bc0ae549c191a05d56b
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu,  2 Feb 2023 22:47:15 -0800

add chattor tor shortened URLs and shortcut

Diffstat:
Mpkg/config/config.go | 1+
Mpkg/web/handlers/api/v1/topBarHandler.go | 2++
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/pkg/config/config.go b/pkg/config/config.go @@ -33,6 +33,7 @@ var RoomPasswordSalt = "room_pa$$word_$alt_OYvUwmNPVTdsw" const ( DkfOnion = "http://dkforestseeaaq2dqz2uflmlsybvnq2irzn4ygyvu53oazyorednviid.onion" DkfGitOnion = "http://yylovpz7taca7jfrub3wltxabzzjp34fngj5lpwl6eo47ekt5cxs6mid.onion" + ChattorOnion = "http://chattorwozgwecrzzbchyhvxiyomny6jn4ac2njc22ozgwg42bhtupad.onion" DreadOnion = "http://dreadytofatroptsdj6io7l3xptbet6onoyno2yv7jicoxknyazubrad.onion" BhcOnion = "http://blkhatjxlrvc5aevqzz5t6kxldayog6jlx5h7glnu44euzongl4fh5ad.onion" CryptbbOnion = "http://cryptbbtg65gibadeeo2awe3j7s6evg7eklserehqr4w4e2bis5tebid.onion" diff --git a/pkg/web/handlers/api/v1/topBarHandler.go b/pkg/web/handlers/api/v1/topBarHandler.go @@ -574,6 +574,7 @@ func convertBangShortcuts(html string) string { "!dnmx", config.DnmxOnion, "!whonix", config.WhonixOnion, "!age", config.AgeUrl, + "!chattor", config.ChattorOnion, ) return r.Replace(html) } @@ -840,6 +841,7 @@ func convertLinks(in string, getUserByUsername func(string) (database.User, erro {"http://blkhat.onion", config.BhcOnion}, {"http://dnmx.onion", config.DnmxOnion}, {"http://whonix.onion", config.WhonixOnion}, + {"http://chattor.onion", config.ChattorOnion}, } newRest := linkOrProfileRgx.ReplaceAllStringFunc(rest, func(link string) string {