khatru: ReplaceEvent hook doesn't need the previous events.

This commit is contained in:
fiatjaf
2026-04-14 19:58:14 -03:00
parent 029f4eb0d8
commit c11e94a04b
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ func (rl *Relay) handleNormal(ctx context.Context, evt nostr.Event) (skipBroadca
} else {
// otherwise it's a replaceable
if nil != rl.ReplaceEvent {
if _, err := rl.ReplaceEvent(ctx, evt); err != nil {
if err := rl.ReplaceEvent(ctx, evt); err != nil {
switch err {
case eventstore.ErrDupEvent:
return true, nil