From 3a0da9f4bb4b2f9fdeed484a77ea87b963ddb161 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 8 Jul 2025 22:54:51 +0300 Subject: Fixed bug where TOS and privacy policy would be stored as a []byte instead of a string which would cause inconsistency in atomics --- cmd/server/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/server') diff --git a/cmd/server/main.go b/cmd/server/main.go index c9eab3a..3b23d17 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -183,8 +183,8 @@ func reloadTosAndPrivacy() bool { return true } - embeds.TermsOfService.Store(tos) - embeds.PrivacyPolicy.Store(privacy) + embeds.TermsOfService.Store(string(tos)) + embeds.PrivacyPolicy.Store(string(privacy)) embeds.TosPrivacyHash.Store(hash) if oldHash == "" { -- cgit v1.3.1