File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed
Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module zooid
33go 1.24.1
44
55require (
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
Original file line number Diff line number Diff line change 11fiatjaf.com/nostr v0.0.0-20250924142401-59bd3c29fffd h1:LnbRz+TxZAROXglKFT+Lqsdqe5Pu8PG0rSpmXGnES90 =
22fiatjaf.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 =
35github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg =
46github.com/BurntSushi/toml v1.5.0 /go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho =
57github.com/ImVexed/fasturl v0.0.0-20230304231329-4e41488060f3 h1:ClzzXMDDuUbWfNNZqGeYq4PnYOlwlOVIvSyNaIy0ykg =
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -31,10 +31,12 @@ type ManagementStore struct {
3131func (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
You can’t perform that action at this time.
0 commit comments