Skip to content

Commit 0f2fe72

Browse files
author
Jon Staab
committed
Upgrade nostrlib
1 parent fa9a7d0 commit 0f2fe72

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module zooid
33
go 1.24.1
44

55
require (
6-
fiatjaf.com/nostr v0.0.0-20250924142401-59bd3c29fffd
6+
fiatjaf.com/nostr v0.0.0-20251104112613-38a6ca92b954
77
github.com/BurntSushi/toml v1.5.0
88
github.com/Masterminds/squirrel v1.5.4
99
github.com/fsnotify/fsnotify v1.9.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
fiatjaf.com/nostr v0.0.0-20250924142401-59bd3c29fffd h1:LnbRz+TxZAROXglKFT+Lqsdqe5Pu8PG0rSpmXGnES90=
22
fiatjaf.com/nostr v0.0.0-20250924142401-59bd3c29fffd/go.mod h1:Nq86Jjsd0OmsOEImUg0iCcLuqM5B67Nj2eu/2dP74Ss=
3+
fiatjaf.com/nostr v0.0.0-20251104112613-38a6ca92b954 h1:CMD8D3TgEjGhuIBNMnvZ0EXOW0JR9O3w8AI6Yuzt8Ec=
4+
fiatjaf.com/nostr v0.0.0-20251104112613-38a6ca92b954/go.mod h1:Nq86Jjsd0OmsOEImUg0iCcLuqM5B67Nj2eu/2dP74Ss=
35
github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg=
46
github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
57
github.com/ImVexed/fasturl v0.0.0-20230304231329-4e41488060f3 h1:ClzzXMDDuUbWfNNZqGeYq4PnYOlwlOVIvSyNaIy0ykg=

zooid/instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func (instance *Instance) OnConnect(ctx context.Context) {
245245
khatru.RequestAuth(ctx)
246246
}
247247

248-
func (instance *Instance) PreventBroadcast(ws *khatru.WebSocket, event nostr.Event) bool {
248+
func (instance *Instance) PreventBroadcast(ws *khatru.WebSocket, filter nostr.Filter, event nostr.Event) bool {
249249
return instance.IsWriteOnlyEvent(event)
250250
}
251251

zooid/management.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ type ManagementStore struct {
3131
func (m *ManagementStore) GetBannedEventItems() []nip86.IDReason {
3232
items := make([]nip86.IDReason, 0)
3333
for tag := range m.Events.GetOrCreateApplicationSpecificData(BANNED_EVENTS).Tags.FindAll("event") {
34-
items = append(items, nip86.IDReason{
35-
ID: tag[1],
36-
Reason: tag[2],
37-
})
34+
if id, err := nostr.IDFromHex(tag[1]); err == nil {
35+
items = append(items, nip86.IDReason{
36+
ID: id,
37+
Reason: tag[2],
38+
})
39+
}
3840
}
3941

4042
return items

0 commit comments

Comments
 (0)