Bundle families frontend and billing data
This commit is contained in:
31
patches/museum-family-link.patch
Normal file
31
patches/museum-family-link.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
diff --git a/server/pkg/controller/family/admin.go b/server/pkg/controller/family/admin.go
|
||||
index 1b58f6b8..8fd74a99 100644
|
||||
--- a/server/pkg/controller/family/admin.go
|
||||
+++ b/server/pkg/controller/family/admin.go
|
||||
@@
|
||||
- "github.com/ente-io/museum/pkg/utils/auth"
|
||||
- "github.com/ente-io/museum/pkg/utils/billing"
|
||||
+ "github.com/ente-io/museum/pkg/utils/auth"
|
||||
+ "github.com/ente-io/museum/pkg/utils/billing"
|
||||
emailUtil "github.com/ente-io/museum/pkg/utils/email"
|
||||
"github.com/ente-io/stacktrace"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/google/uuid"
|
||||
"github.com/sirupsen/logrus"
|
||||
+ "github.com/spf13/viper"
|
||||
)
|
||||
@@
|
||||
- FamilyPlainHost = "https://family.ente.io"
|
||||
+ defaultFamilyHost = "https://family.ente.io"
|
||||
)
|
||||
+
|
||||
+func familyInviteHost() string {
|
||||
+ host := viper.GetString("apps.family")
|
||||
+ if host != "" {
|
||||
+ return host
|
||||
+ }
|
||||
+ return defaultFamilyHost
|
||||
+}
|
||||
@@
|
||||
- templateData["FamilyInviteLink"] = fmt.Sprintf("%s?inviteToken=%s", FamilyPlainHost, *inviteToken)
|
||||
+ templateData["FamilyInviteLink"] = fmt.Sprintf("%s?inviteToken=%s", familyInviteHost(), *inviteToken)
|
||||
Reference in New Issue
Block a user