update go-nostr to fix a stupid bug.

This commit is contained in:
fiatjaf
2023-07-11 15:26:33 -03:00
parent 15dc2dff45
commit bfa2f5f537
3 changed files with 5 additions and 5 deletions

4
go.mod
View File

@@ -7,9 +7,8 @@ require (
github.com/dgraph-io/ristretto v0.1.1
github.com/gomarkdown/markdown v0.0.0-20230322041520-c84983bdbf2a
github.com/lukevers/freetype-go v0.0.0-20150513150840-77e276735410
github.com/mailru/easyjson v0.7.7
github.com/microcosm-cc/bluemonday v1.0.24
github.com/nbd-wtf/go-nostr v0.19.3
github.com/nbd-wtf/go-nostr v0.19.4
github.com/pelletier/go-toml v1.9.5
github.com/rs/zerolog v1.29.1
golang.org/x/image v0.0.0-20190802002840-cff245a6509b
@@ -30,6 +29,7 @@ require (
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
github.com/gorilla/css v1.0.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/pkg/errors v0.9.1 // indirect

4
go.sum
View File

@@ -87,8 +87,8 @@ github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
github.com/microcosm-cc/bluemonday v1.0.24 h1:NGQoPtwGVcbGkKfvyYk1yRqknzBuoMiUrO6R7uFTPlw=
github.com/microcosm-cc/bluemonday v1.0.24/go.mod h1:ArQySAMps0790cHSkdPEJ7bGkF2VePWH773hsJNSHf8=
github.com/nbd-wtf/go-nostr v0.19.3 h1:+sZyz95RVz57E9JMySZj0O1kWHKvS8uqVurUmsN9Cc8=
github.com/nbd-wtf/go-nostr v0.19.3/go.mod h1:F9y6+M8askJCjilLgMC3rD0moA6UtG1MCnyClNYXeys=
github.com/nbd-wtf/go-nostr v0.19.4 h1:WXzVvcl8SFzjJoGdjHKrljPe0urecJj7vQl0WxaFbiY=
github.com/nbd-wtf/go-nostr v0.19.4/go.mod h1:F9y6+M8askJCjilLgMC3rD0moA6UtG1MCnyClNYXeys=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=

View File

@@ -153,7 +153,7 @@ func getLastNotes(ctx context.Context, code string) []*nostr.Event {
{
Kinds: []int{nostr.KindTextNote},
Authors: []string{pp.PublicKey},
Limit: 20,
Limit: 10,
},
})
lastNotes := make([]*nostr.Event, 0, 20)