aboutsummaryrefslogtreecommitdiff
path: root/src/lib/utils.ts
diff options
context:
space:
mode:
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