mirror of
https://github.com/aljazceru/haven.git
synced 2025-12-19 14:44:20 +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":
|
case "/inbox":
|
||||||
inboxRelay.StoreEvent = append(inboxRelay.StoreEvent, inboxDB.SaveEvent)
|
inboxRelay.StoreEvent = append(inboxRelay.StoreEvent, inboxDB.SaveEvent)
|
||||||
inboxRelay.QueryEvents = append(inboxRelay.QueryEvents, inboxDB.QueryEvents)
|
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) {
|
inboxRelay.RejectEvent = append(inboxRelay.RejectEvent, func(ctx context.Context, event *nostr.Event) (bool, string) {
|
||||||
if !wotMap[event.PubKey] {
|
if !wotMap[event.PubKey] {
|
||||||
|
|||||||
Reference in New Issue
Block a user