update khatru.

This commit is contained in:
fiatjaf
2023-12-07 08:20:12 -03:00
parent 35ce972ea6
commit c20653594f
3 changed files with 4 additions and 3 deletions

2
go.mod
View File

@@ -7,7 +7,7 @@ require (
github.com/apatters/go-wordwrap v1.0.0 github.com/apatters/go-wordwrap v1.0.0
github.com/dgraph-io/badger/v4 v4.2.0 github.com/dgraph-io/badger/v4 v4.2.0
github.com/fiatjaf/eventstore v0.2.13 github.com/fiatjaf/eventstore v0.2.13
github.com/fiatjaf/khatru v0.0.6 github.com/fiatjaf/khatru v0.1.1
github.com/fogleman/gg v1.3.0 github.com/fogleman/gg v1.3.0
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
github.com/gomarkdown/markdown v0.0.0-20231115200524-a660076da3fd github.com/gomarkdown/markdown v0.0.0-20231115200524-a660076da3fd

4
go.sum
View File

@@ -70,8 +70,8 @@ github.com/fasthttp/websocket v1.5.3 h1:TPpQuLwJYfd4LJPXvHDYPMFWbLjsT91n3GpWtCQt
github.com/fasthttp/websocket v1.5.3/go.mod h1:46gg/UBmTU1kUaTcwQXpUxtRwG2PvIZYeA8oL6vF3Fs= github.com/fasthttp/websocket v1.5.3/go.mod h1:46gg/UBmTU1kUaTcwQXpUxtRwG2PvIZYeA8oL6vF3Fs=
github.com/fiatjaf/eventstore v0.2.13 h1:Pow501WjZVtfVug8PHJAlgw4um3bGe1iQ2GxbFZgaN8= github.com/fiatjaf/eventstore v0.2.13 h1:Pow501WjZVtfVug8PHJAlgw4um3bGe1iQ2GxbFZgaN8=
github.com/fiatjaf/eventstore v0.2.13/go.mod h1:CDzb0tH0Buw2TrKQ4Bpvwg3F6ITvLsk+pmp0tACNUlw= github.com/fiatjaf/eventstore v0.2.13/go.mod h1:CDzb0tH0Buw2TrKQ4Bpvwg3F6ITvLsk+pmp0tACNUlw=
github.com/fiatjaf/khatru v0.0.6 h1:6d5gnKdgsaHD+NZFzsVp22nqxnGxtlLLR8gYVea6KBU= github.com/fiatjaf/khatru v0.1.1 h1:xx1mA7OLxKdK+hPOKEqWSsafKJH/z6Rv+b0ALzRzd/Q=
github.com/fiatjaf/khatru v0.0.6/go.mod h1:gvfXhDel30t84mkWk5aDwBRD1N8py4RixIwGD0i+LMY= github.com/fiatjaf/khatru v0.1.1/go.mod h1:reXIM06zBXmFWwM1qp9mW6jCWjxTkEbtObVEPm0jOXE=
github.com/fogleman/gg v1.3.0 h1:/7zJX8F6AaYQc57WQCyN9cAIz+4bCJGO9B+dyW29am8= github.com/fogleman/gg v1.3.0 h1:/7zJX8F6AaYQc57WQCyN9cAIz+4bCJGO9B+dyW29am8=
github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=

View File

@@ -177,6 +177,7 @@ func getEvent(ctx context.Context, code string, relayHints []string) (*nostr.Eve
} }
if result == nil { if result == nil {
log.Debug().Str("code", code).Msg("couldn't find")
return nil, nil, fmt.Errorf("couldn't find this %s, did you include relay or author hints in it?", prefix) return nil, nil, fmt.Errorf("couldn't find this %s, did you include relay or author hints in it?", prefix)
} }