aboutsummaryrefslogtreecommitdiff
path: root/src/lib/utils.ts
diff options
context:
space:
mode:
authorLibravatar buttercat1791 <mjjurkoic@gmail.com>2024-08-22 21:50:05 -0500
committerLibravatar limina1 <liminal@duck.com>2024-08-27 08:22:01 -0400
commitdbf9118621923dcf11cdea0617ab62d33e26b994 (patch)
treec90c2e454582b563b31c49957631276051d062bb /src/lib/utils.ts
parenta67ac58d5ed173f039be67d491db8d4f2a785884 (diff)
Handle updated index event format
Diffstat (limited to 'src/lib/utils.ts')
-rw-r--r--src/lib/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils.ts b/src/lib/utils.ts
index 67d6e08..be2ff5c 100644
--- a/src/lib/utils.ts
+++ b/src/lib/utils.ts
@@ -94,7 +94,7 @@ export function filterValidIndexEvents(events: Set<NDKEvent>): Set<NDKEvent> {
events.forEach(event => {
// Index events have no content, and they must have `title`, `d`, and `e` tags.
if (
- event.content != null
+ (event.content != null && event.content.length > 0)
|| event.getMatchingTags('title').length === 0
|| event.getMatchingTags('d').length === 0
|| event.getMatchingTags('e').length === 0