This commit is contained in:
Tomas Dvorak
2025-11-02 21:31:00 +01:00
parent b9cea0cd77
commit 087f30e82c
130 changed files with 20104 additions and 34330 deletions
+5
View File
@@ -129,6 +129,11 @@ func (ac *AuthController) Register(c *gin.Context) {
return
}
// Ensure engagement profile exists with autogenerated username & avatar
// Best-effort: ignore error, profile will be created lazily if needed
trySvc := services.NewEngagementService(ac.DB)
_, _ = trySvc.EnsureProfile(user.ID)
// Auto-subscribe newly registered fans to the newsletter
_ = models.SubscribeToNewsletter(ac.DB, user.Email)