Coffee journaling on ATProto (alpha) alpha.arabica.social
coffee

refactor: change examples

pdewey.com 84afe0c8 3432aef9

verified
+5 -4
+3 -2
internal/handlers/join.go
··· 141 141 // Email the invite code to the requester 142 142 if h.emailSender != nil && h.emailSender.Enabled() { 143 143 subject := "Your Arabica Invite Code" 144 - // TODO: this should probably use the env var rather than hard coded 145 - body := fmt.Sprintf("Welcome to Arabica!\n\nHere is your invite code to create an account on arabica.systems:\n\n %s\n\nVisit https://arabica.systems to sign up with this code.\n\nHappy brewing!\n", out.Code) 144 + // TODO: this should probably use the env var rather than hard coded (for name/url) 145 + // TODO: also this could be a template file 146 + body := fmt.Sprintf("Welcome to Arabica!\n\nHere is your invite code to create an account on the arabica.systems PDS:\n\n %s\n\nVisit https://arabica.social/join to sign up with this code.\n\nHappy brewing!\n", out.Code) 146 147 if err := h.emailSender.Send(reqEmail, subject, body); err != nil { 147 148 log.Error().Err(err).Str("email", reqEmail).Msg("Failed to send invite email") 148 149 http.Error(w, "Invite created but failed to send email. Code: "+out.Code, http.StatusInternalServerError)
+2 -2
lexicons/social.arabica.alpha.roaster.json
··· 13 13 "name": { 14 14 "type": "string", 15 15 "maxLength": 200, 16 - "description": "Name of the roaster (e.g., 'Blue Bottle', 'Stumptown')" 16 + "description": "Name of the roaster (e.g., 'Black & White', 'Red Rooster')" 17 17 }, 18 18 "location": { 19 19 "type": "string", 20 20 "maxLength": 200, 21 - "description": "Location of the roaster (e.g., 'Oakland, CA', 'Portland, OR')" 21 + "description": "Location of the roaster (e.g., 'Raleigh, NC', 'Floyd, VA')" 22 22 }, 23 23 "website": { 24 24 "type": "string",