fs: do not paginate videos and highlights (should make this dynamic in the future).

This commit is contained in:
fiatjaf
2025-03-11 12:37:38 -03:00
parent fe1f50f798
commit 602e03a9a1

View File

@@ -183,7 +183,7 @@ func CreateNpubDir(
Kinds: []int{21, 22}, Kinds: []int{21, 22},
Authors: []string{pointer.PublicKey}, Authors: []string{pointer.PublicKey},
}, },
paginate: true, paginate: false,
relays: relays, relays: relays,
create: func(ctx context.Context, n *ViewDir, event *nostr.Event) (string, *fs.Inode) { create: func(ctx context.Context, n *ViewDir, event *nostr.Event) (string, *fs.Inode) {
return event.ID, CreateEventDir(ctx, n, n.wd, event) return event.ID, CreateEventDir(ctx, n, n.wd, event)
@@ -206,7 +206,7 @@ func CreateNpubDir(
Kinds: []int{9802}, Kinds: []int{9802},
Authors: []string{pointer.PublicKey}, Authors: []string{pointer.PublicKey},
}, },
paginate: true, paginate: false,
relays: relays, relays: relays,
create: func(ctx context.Context, n *ViewDir, event *nostr.Event) (string, *fs.Inode) { create: func(ctx context.Context, n *ViewDir, event *nostr.Event) (string, *fs.Inode) {
return event.ID, CreateEventDir(ctx, n, n.wd, event) return event.ID, CreateEventDir(ctx, n, n.wd, event)