stop and error on delete failed.

This commit is contained in:
fiatjaf
2024-04-18 21:20:46 -03:00
parent e03a02fed7
commit f1f54a7bf3

View File

@@ -34,7 +34,9 @@ func (rl *Relay) handleDeleteRequest(ctx context.Context, evt *nostr.Event) erro
if acceptDeletion {
// delete it
for _, del := range rl.DeleteEvent {
del(ctx, target)
if err := del(ctx, target); err != nil {
return err
}
}
} else {
// fail and stop here