Fixed bug where TOS and privacy policy would be stored as a []byte

instead of a string which would cause inconsistency in atomics
This commit is contained in:
2025-07-08 22:54:51 +03:00
parent 966b9c4f24
commit 3a0da9f4bb

View File

@@ -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 == "" {