Fix document parsing

This commit is contained in:
@s.roertgen 2025-04-25 11:44:16 +02:00
parent 4004c6da63
commit 31e0f96164

View file

@ -159,7 +159,7 @@ func parseSearchResponse(responseBody []byte) ([]nostr.Event, error) {
for _, hit := range searchResponse.Hits {
// Extract the document from the hit
docMap, ok := hit["document"].(map[string]AMBMetadata)
docMap, ok := hit["document"]
if !ok {
return nil, fmt.Errorf("invalid document format in search results")
}