ente -> Ente

This commit is contained in:
vishnukvmd
2024-08-22 18:12:08 +05:30
parent d37c85bce2
commit 92ab8e5289
4 changed files with 8 additions and 8 deletions

View File

@@ -23,11 +23,11 @@ const (
FilesCollectedTemplateID = "files_collected"
FilesCollectedSubject = "You've got photos!"
SubscriptionUpgradedTemplate = "subscription_upgraded.html"
SubscriptionUpgradedSubject = "Thank you for choosing ente!"
SubscriptionUpgradedSubject = "Thank you for choosing Ente!"
FilesCollectedMuteDurationInMinutes = 10
StorageLimitExceededSubject = "[Alert] You have exceeded your storage limit"
ReferralSuccessfulTemplate = "successful_referral.html"
ReferralSuccessfulSubject = "You've earned 10 GB on ente! 🎁"
ReferralSuccessfulSubject = "You've earned 10 GB on Ente! 🎁"
)
type EmailNotificationController struct {

View File

@@ -220,18 +220,18 @@ func (c *Controller) sendNotification(ctx context.Context, adminUserID int64, me
if newStatus == ente.INVITED {
templateName = InviteTemplate
title = "You've been invited to join a family on ente!"
title = "You've been invited to join a family on Ente!"
emailTo = memberUser.Email
inlineImage["content"] = HappyHeaderImage
} else if newStatus == ente.REMOVED {
emailTo = memberUser.Email
templateName = RemovedTemplate
title = "You have been removed from the family account on ente"
title = "You have been removed from the family account on Ente"
inlineImage["content"] = SadHeaderImage
} else if newStatus == ente.LEFT {
emailTo = adminUser.Email
templateName = LeftTemplate
title = fmt.Sprintf("%s has left your family on ente", memberUser.Email)
title = fmt.Sprintf("%s has left your family on Ente", memberUser.Email)
inlineImage["content"] = SadHeaderImage
} else if newStatus == ente.ACCEPTED {
emailTo = adminUser.Email

View File

@@ -38,11 +38,11 @@ const (
DeviceLimitWarningThreshold = 2000
AbuseAlertSubject = "[Alert] Abuse report received against your album on ente"
AbuseAlertSubject = "[Alert] Abuse report received against your album on Ente"
AbuseAlertTeamSubject = "Abuse report received"
AbuseLimitExceededSubject = "[Alert] Too many abuse reports received against your album on ente"
AbuseLimitExceededSubject = "[Alert] Too many abuse reports received against your album on Ente"
AbuseAlertTemplate = "report_alert.html"

View File

@@ -93,7 +93,7 @@ const (
// their account.
AccountDeletedEmailTemplate = "account_deleted.html"
AccountDeletedWithActiveSubscriptionEmailTemplate = "account_deleted_active_sub.html"
AccountDeletedEmailSubject = "Your ente account has been deleted"
AccountDeletedEmailSubject = "Your Ente account has been deleted"
)
func NewUserController(