diff options
Diffstat (limited to 'src/nostr/policy/related.rs')
| -rw-r--r-- | src/nostr/policy/related.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nostr/policy/related.rs b/src/nostr/policy/related.rs index 7ce87db..cfe04a7 100644 --- a/src/nostr/policy/related.rs +++ b/src/nostr/policy/related.rs | |||
| @@ -139,6 +139,11 @@ impl RelatedEventPolicy { | |||
| 139 | .push((addr, pubkey, identifier)); | 139 | .push((addr, pubkey, identifier)); |
| 140 | } | 140 | } |
| 141 | 141 | ||
| 142 | // NOTE: Intentionally only checks the database (promoted announcements), not purgatory. | ||
| 143 | // Related events should only be accepted once the repository announcement has been | ||
| 144 | // validated (promoted via git data). Events referencing purgatory-only repositories | ||
| 145 | // are correctly rejected as orphans and can be re-submitted after promotion. | ||
| 146 | |||
| 142 | // Query each kind group | 147 | // Query each kind group |
| 143 | for (kind, refs) in by_kind { | 148 | for (kind, refs) in by_kind { |
| 144 | let authors: Vec<PublicKey> = refs.iter().map(|(_, pk, _)| *pk).collect(); | 149 | let authors: Vec<PublicKey> = refs.iter().map(|(_, pk, _)| *pk).collect(); |