Skip to content

Commit

Permalink
Merge pull request #43 from bitvora/dev-addDeleteToInbox
Browse files Browse the repository at this point in the history
add delete to inbox relay
  • Loading branch information
barrydeen authored Oct 27, 2024
2 parents b515292 + c722c89 commit 1cda85e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand Down

0 comments on commit 1cda85e

Please sign in to comment.