mirror of
https://github.com/lumehq/lume.git
synced 2025-03-28 18:52:33 +01:00
updated onboarding pre-following process
This commit is contained in:
parent
2ef3e9ba85
commit
690d55e0eb
@ -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}")`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user