mirror of
https://github.com/aljazceru/haven.git
synced 2025-12-18 22:24:22 +01:00
add delete to inbox relay
This commit is contained in:
1
main.go
1
main.go
@@ -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] {
|
||||
|
||||
Reference in New Issue
Block a user