diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-04-10 18:20:23 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-04-10 18:20:23 +0000 |
| commit | 2161e3c0a8169a85111cd6dc01ffe2b0fed1493f (patch) | |
| tree | 92684ae1521ab470ef0d9a59b2bb0530c8ed5367 /docs/how-to/migration-scripts/10-check-git-sync.sh | |
| parent | dfd20a39a7ddaea07103cac45d4d79bc7e6ce0d7 (diff) | |
fix: purgatory replacement announcements leaked into DB without git data
When a replacement 30617 announcement arrived for an entry already in
purgatory (e.g. the same event fetched from a second relay during sync,
or a user re-submitting a slightly updated announcement), the policy
returned Accept instead of AcceptPurgatory. This caused the event to be
saved to the database immediately, bypassing the purgatory gate, without
the corresponding git data or state events ever arriving.
Fix: return AcceptPurgatory when replacing a purgatory entry so the
updated event stays in purgatory until git data arrives. The purgatory
entry is still updated with the newer event via replace_purgatory_announcement
before the return.
Diffstat (limited to 'docs/how-to/migration-scripts/10-check-git-sync.sh')
0 files changed, 0 insertions, 0 deletions