Compare commits
2 Commits
4f10099b41
...
v3.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee76a275ad | ||
|
|
e826c9aa08 |
@@ -1,3 +1,5 @@
|
|||||||
|
version: 2
|
||||||
|
|
||||||
gitea_urls:
|
gitea_urls:
|
||||||
api: https://git.handmadecities.com/api/v1
|
api: https://git.handmadecities.com/api/v1
|
||||||
download: https://git.handmadecities.com/
|
download: https://git.handmadecities.com/
|
||||||
|
|||||||
6
main.go
6
main.go
@@ -56,11 +56,16 @@ type Config struct {
|
|||||||
} `toml:"postmark"`
|
} `toml:"postmark"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
MEETUP_INVITE_CLIENT_VERSION = "v3.0.0"
|
||||||
|
)
|
||||||
|
|
||||||
func retrieveSubscribers(cfg *Config) ([]string, error) {
|
func retrieveSubscribers(cfg *Config) ([]string, error) {
|
||||||
/* Prepare request payload */
|
/* Prepare request payload */
|
||||||
/* *** */
|
/* *** */
|
||||||
payload := map[string]string{
|
payload := map[string]string{
|
||||||
"city": cfg.HMC.City,
|
"city": cfg.HMC.City,
|
||||||
|
"client": MEETUP_INVITE_CLIENT_VERSION,
|
||||||
}
|
}
|
||||||
|
|
||||||
payloadBytes, err := json.Marshal(payload)
|
payloadBytes, err := json.Marshal(payload)
|
||||||
@@ -230,6 +235,7 @@ func bloggify(cfg *Config, subject, body string, isLive bool) (string, bool) {
|
|||||||
"email": cfg.Postmark.SenderEmail,
|
"email": cfg.Postmark.SenderEmail,
|
||||||
"subject": subject,
|
"subject": subject,
|
||||||
"body": body,
|
"body": body,
|
||||||
|
"client": MEETUP_INVITE_CLIENT_VERSION,
|
||||||
}
|
}
|
||||||
|
|
||||||
payloadBytes, err := json.Marshal(payload)
|
payloadBytes, err := json.Marshal(payload)
|
||||||
|
|||||||
Reference in New Issue
Block a user