From 690d55e0eb54dfa46311a761cc3a3be2ba2a0dd3 Mon Sep 17 00:00:00 2001 From: Ren Amamiya <123083837+reyamir@users.noreply.github.com> Date: Sun, 26 Feb 2023 20:52:28 +0700 Subject: [PATCH] updated onboarding pre-following process --- src/pages/onboarding/following.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/onboarding/following.tsx b/src/pages/onboarding/following.tsx index 2d5e8cef..b4d923b7 100644 --- a/src/pages/onboarding/following.tsx +++ b/src/pages/onboarding/following.tsx @@ -33,8 +33,9 @@ export default function Page() { const insertDB = async () => { const db = await Database.load('sqlite:lume.db'); - // self followed + // self follow await db.execute(`INSERT INTO follows (pubkey, account) VALUES ("${$currentUser.pubkey}", "${$currentUser.pubkey}")`); + // follow selected follow.forEach(async (npub) => { const { data } = nip19.decode(npub); await db.execute(`INSERT INTO follows (pubkey, account) VALUES ("${data}", "${$currentUser.pubkey}")`);