diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nostr/policy/announcement.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nostr/policy/announcement.rs b/src/nostr/policy/announcement.rs index aba5181..b474fbb 100644 --- a/src/nostr/policy/announcement.rs +++ b/src/nostr/policy/announcement.rs | |||
| @@ -137,8 +137,10 @@ impl AnnouncementPolicy { | |||
| 137 | "Replacement announcement (purgatory) - replacing purgatory entry" | 137 | "Replacement announcement (purgatory) - replacing purgatory entry" |
| 138 | ); | 138 | ); |
| 139 | self.replace_purgatory_announcement(event, &announcement); | 139 | self.replace_purgatory_announcement(event, &announcement); |
| 140 | // Return Accept (not AcceptPurgatory) - this is a replacement, not new | 140 | // Return AcceptPurgatory - git data hasn't arrived yet so the |
| 141 | return validation_result; | 141 | // announcement must NOT be saved to the database. The purgatory |
| 142 | // entry has already been updated above with the newer event. | ||
| 143 | return AnnouncementResult::AcceptPurgatory; | ||
| 142 | } | 144 | } |
| 143 | 145 | ||
| 144 | // No existing announcement - route to purgatory | 146 | // No existing announcement - route to purgatory |