dkforest

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

commit aeb945782004d69f04c2c93c11c08f39d080a9cb
parent c7d730506c8a85a6e496b0480ef0557acadaaad2
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 24 May 2023 09:47:42 -0700

add lulbins to known links

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 @@ -39,6 +39,7 @@ const ( CryptbbOnion = "http://cryptbbtg65gibadeeo2awe3j7s6evg7eklserehqr4w4e2bis5tebid.onion" DnmxOnion = "http://hxuzjtocnzvv5g2rtg2bhwkcbupmk7rclb6lly3fo4tvqkk5oyrv3nid.onion" WhonixOnion = "http://dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion" + LulbinsOnion = "http://oqdgipfvpz37xcw5oulpn7lnbwaz2iz52w5ayhasoz2sujpwqcx2mbyd.onion" AgeUrl = "https://github.com/FiloSottile/age" ) diff --git a/pkg/web/handlers/api/v1/topBarHandler.go b/pkg/web/handlers/api/v1/topBarHandler.go @@ -581,6 +581,7 @@ func convertBangShortcuts(html string) string { "!whonix", config.WhonixOnion, "!age", config.AgeUrl, "!chattor", config.ChattorOnion, + "!lulbins", config.LulbinsOnion, ) return r.Replace(html) } @@ -849,6 +850,7 @@ func convertLinks(in string, getUserByUsername func(string) (database.User, erro {"http://dnmx.onion", config.DnmxOnion}, {"http://whonix.onion", config.WhonixOnion}, {"http://chattor.onion", config.ChattorOnion}, + {"http://lulbins.onion", config.LulbinsOnion}, } newRest := linkOrProfileRgx.ReplaceAllStringFunc(rest, func(link string) string {