diff options
Diffstat (limited to 'src/http/nip11.rs')
| -rw-r--r-- | src/http/nip11.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/http/nip11.rs b/src/http/nip11.rs index 2a37385..1ed80de 100644 --- a/src/http/nip11.rs +++ b/src/http/nip11.rs | |||
| @@ -76,11 +76,7 @@ impl RelayInformationDocument { | |||
| 76 | 76 | ||
| 77 | // GRASP-01 Extensions | 77 | // GRASP-01 Extensions |
| 78 | supported_grasps: vec!["GRASP-01".to_string()], | 78 | supported_grasps: vec!["GRASP-01".to_string()], |
| 79 | repo_acceptance_criteria: format!( | 79 | repo_acceptance_criteria: "None".to_string(), |
| 80 | "Repositories must list this relay ({}) in both 'clone' and 'relays' tags of kind 30617 announcements. \ | ||
| 81 | All other events must reference accepted repositories or accepted events.", | ||
| 82 | config.domain | ||
| 83 | ), | ||
| 84 | curation: None, // Not a curated relay - only SPAM prevention via GRASP-01 policy | 80 | curation: None, // Not a curated relay - only SPAM prevention via GRASP-01 policy |
| 85 | } | 81 | } |
| 86 | } | 82 | } |
| @@ -118,7 +114,7 @@ mod tests { | |||
| 118 | assert!(doc.supported_nips.contains(&34)); | 114 | assert!(doc.supported_nips.contains(&34)); |
| 119 | assert!(doc.supported_nips.contains(&77)); | 115 | assert!(doc.supported_nips.contains(&77)); |
| 120 | assert_eq!(doc.supported_grasps, vec!["GRASP-01"]); | 116 | assert_eq!(doc.supported_grasps, vec!["GRASP-01"]); |
| 121 | assert!(doc.repo_acceptance_criteria.contains("relay.example.com")); | 117 | assert!(doc.repo_acceptance_criteria.contains("None")); |
| 122 | assert!(doc.curation.is_none()); | 118 | assert!(doc.curation.is_none()); |
| 123 | assert_eq!( | 119 | assert_eq!( |
| 124 | doc.icon, | 120 | doc.icon, |