feat: change email, export my data, delete account (with data anonymization)
This commit is contained in:
1 parent
bb191c389a
commit
10a66cd979
123 files changed
+10789
-76
No files matched your search
@@ -112,7 +112,7 @@ type Page struct {
|
||||
}
|
||||
|
||||
func IsValidSlug(candidate string) bool {
|
||||
return slug.IsValid(candidate)
|
||||
return slug.IsValid(candidate) && !IsReservedSlug(candidate)
|
||||
}
|
||||
|
||||
func IsValidName(name string) bool {
|
||||
@@ -172,9 +172,9 @@ func ValidateLinks(links []SocialLink) error {
|
||||
}
|
||||
|
||||
func GenerateSlug(name string) string {
|
||||
return slug.Generate(name, FallbackSlug)
|
||||
return avoidReserved(slug.Generate(name, FallbackSlug))
|
||||
}
|
||||
|
||||
func SlugWithSuffix(base string, attempt int) string {
|
||||
return slug.WithSuffix(base, attempt)
|
||||
return avoidReserved(slug.WithSuffix(base, attempt))
|
||||
}
|
||||
Reference in new issue
Block a user