From eccc4f00444d95214c5b2c5b219593f3091a3e04 Mon Sep 17 00:00:00 2001
From: Noah Petherbridge
Date: Wed, 24 May 2023 11:35:22 -0700
Subject: [PATCH] Update some wording
---
pkg/controller/account/inner_circle.go | 7 ++++++-
web/templates/account/inner_circle.html | 9 ++++++++-
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/pkg/controller/account/inner_circle.go b/pkg/controller/account/inner_circle.go
index 14f8e54..0887e21 100644
--- a/pkg/controller/account/inner_circle.go
+++ b/pkg/controller/account/inner_circle.go
@@ -3,6 +3,7 @@ package account
import (
"net/http"
+ "code.nonshy.com/nonshy/website/pkg/config"
"code.nonshy.com/nonshy/website/pkg/log"
"code.nonshy.com/nonshy/website/pkg/models"
"code.nonshy.com/nonshy/website/pkg/session"
@@ -19,7 +20,11 @@ func InnerCircle() http.HandlerFunc {
return
}
- if err := tmpl.Execute(w, r, nil); err != nil {
+ var vars = map[string]interface{}{
+ "InnerCircleMinimumPublicPhotos": config.InnerCircleMinimumPublicPhotos,
+ }
+
+ if err := tmpl.Execute(w, r, vars); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
diff --git a/web/templates/account/inner_circle.html b/web/templates/account/inner_circle.html
index bcc4ad8..5b5d541 100644
--- a/web/templates/account/inner_circle.html
+++ b/web/templates/account/inner_circle.html
@@ -76,12 +76,19 @@
- If a member posts several nude pics including face you should invite them to join
+ If a member posts several (e.g. {{.InnerCircleMinimumPublicPhotos}}+) nude pics including face you should invite them to join
the inner circle. All members of the circle are allowed to invite new members to join. We trust your
judgment: please only invite like-minded nudists who actually share nudes with face
to join the inner circle.
+
+ Notice: the prompt to invite them to the circle will not be visible if they do not have
+ at least {{.InnerCircleMinimumPublicPhotos}} public photos on their page at all.
+ Those public photos aren't necessarily nudes, but hiding the prompt unless they have {{.InnerCircleMinimumPublicPhotos}}
+ photos can help reduce the risk of inviting somebody on accident.
+
+
Please keep the existence of the inner circle a secret