diff options
| author | Adam Soltys <[email protected]> | 2024-10-14 09:08:39 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-14 09:08:39 -0700 |
| commit | e2d5d6f874f620db242a3ec8fbe3e536b51f091a (patch) | |
| tree | 8436f1ee3d2a0840dd90501f154378a7db667d02 /lib/nostr.ts | |
| parent | e4a821d9815d88f6fb26e0dd14f43609038c6734 (diff) | |
| download | coinos-server-e2d5d6f874f620db242a3ec8fbe3e536b51f091a.tar.gz coinos-server-e2d5d6f874f620db242a3ec8fbe3e536b51f091a.zip | |
default follows
Diffstat (limited to 'lib/nostr.ts')
| -rw-r--r-- | lib/nostr.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nostr.ts b/lib/nostr.ts index a58cb2c9..e4d695e5 100644 --- a/lib/nostr.ts +++ b/lib/nostr.ts @@ -156,7 +156,7 @@ export let getCount = async (pubkey) => { let follows = await g(`${pubkey}:follows:n`); let followers = await g(`${pubkey}:followers:n`); - if (!follows) { + if (follows === null) { let filter: any = { kinds: [3], authors: [pubkey] }; let ev = await pool.get([config.nostr], filter, opts); @@ -179,7 +179,7 @@ export let getCount = async (pubkey) => { await s(`${pubkey}:follows:n`, follows); } - if (!followers) { + if (followers === null) { let filter: any = { cache: ["user_infos", { pubkeys: [pubkey] }] }; let infos = await pool.querySync([config.cache], filter, opts); |
