mirror of
https://github.com/aljazceru/khatru.git
synced 2026-01-09 00:14:25 +01:00
stop and error on delete failed.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user