diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-07-08 22:54:51 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-07-08 22:54:51 +0300 |
| commit | 3a0da9f4bb4b2f9fdeed484a77ea87b963ddb161 (patch) | |
| tree | 67e61a4a4412565c89b654cc8ec35d7bfb1350b2 /cmd | |
| parent | 966b9c4f24b22a33fa2b7b6cd437366f93ca7b22 (diff) | |
Fixed bug where TOS and privacy policy would be stored as a []byte
instead of a string which would cause inconsistency in atomics
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/server/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 == "" { |
