add delete to inbox relay

This commit is contained in:
Barry Deen
2024-10-27 10:16:05 -04:00
parent b51529221e
commit c722c8989c

View File

@@ -200,6 +200,7 @@ func makeNewRelay(relayType string, w http.ResponseWriter, r *http.Request) *kha
case "/inbox":
inboxRelay.StoreEvent = append(inboxRelay.StoreEvent, inboxDB.SaveEvent)
inboxRelay.QueryEvents = append(inboxRelay.QueryEvents, inboxDB.QueryEvents)
inboxRelay.DeleteEvent = append(inboxRelay.DeleteEvent, inboxDB.DeleteEvent)
inboxRelay.RejectEvent = append(inboxRelay.RejectEvent, func(ctx context.Context, event *nostr.Event) (bool, string) {
if !wotMap[event.PubKey] {