Require client version to be broadcast

master
Abner Coimbre 2026-01-25 16:07:20 -08:00
parent 4f10099b41
commit e826c9aa08
1 changed files with 6 additions and 0 deletions

View File

@ -56,11 +56,16 @@ type Config struct {
} `toml:"postmark"`
}
const (
MEETUP_INVITE_CLIENT_VERSION = "v3.0.0"
)
func retrieveSubscribers(cfg *Config) ([]string, error) {
/* Prepare request payload */
/* *** */
payload := map[string]string{
"city": cfg.HMC.City,
"client": MEETUP_INVITE_CLIENT_VERSION,
}
payloadBytes, err := json.Marshal(payload)
@ -230,6 +235,7 @@ func bloggify(cfg *Config, subject, body string, isLive bool) (string, bool) {
"email": cfg.Postmark.SenderEmail,
"subject": subject,
"body": body,
"client": MEETUP_INVITE_CLIENT_VERSION,
}
payloadBytes, err := json.Marshal(payload)