diff options
Diffstat (limited to 'routes/nostr.ts')
| -rw-r--r-- | routes/nostr.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routes/nostr.ts b/routes/nostr.ts index ae2be7e9..f43f3517 100644 --- a/routes/nostr.ts +++ b/routes/nostr.ts @@ -64,14 +64,14 @@ export default { if (!events.length) return res.send([]); const event = events[0]; - const pubkeys = event.tags + let pubkeys = event.tags .filter((tag) => tag[0] === "p") - .map((tag) => tag[1]) - .slice(offset, limit); + .map((tag) => tag[1]); let follows = []; if (pubkeysOnly) follows = pubkeys; else { + pubkeys = pubkeys.slice(limit, offset); const profiles = await scan({ authors: pubkeys, kinds: [0] }); for (const p of profiles) { const { content, pubkey } = p; |
