this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

syntax: disallow .example and .alt TLDs

+5 -1
+5 -1
atproto/syntax/handle.go
··· 31 31 } 32 32 33 33 // Some top-level domains (TLDs) are disallowed for registration across the atproto ecosystem. The *syntax* is valid, but these should never be considered acceptable handles for account registration or linking. 34 + // 35 + // The reserved '.test' TLD is allowed, for testing and development. It is expected that '.test' domain resolution will fail in a real-world network. 34 36 func (h Handle) AllowedTLD() bool { 35 37 switch h.TLD() { 36 38 case "local", ··· 38 40 "invalid", 39 41 "localhost", 40 42 "internal", 41 - "onion": 43 + "example", 44 + "onion", 45 + "alt": 42 46 return false 43 47 } 44 48 return true