Fix generation of questionId

This commit is contained in:
@s.roertgen 2025-05-06 09:05:12 +02:00
parent dc1bbde182
commit ef79a633e7

View file

@ -29,9 +29,10 @@
'#d': [sessionId + ''] // filter by `d` tag '#d': [sessionId + ''] // filter by `d` tag
}; };
console.log(filter); console.log(filter);
const question = await $ndk.fetchEvent(filter); const questionEvent = await $ndk.fetchEvent(filter);
console.log('question', question); console.log('question', question);
goto('/q/' + question.id); $questionId = `${questionEvent.kind}:${questionEvent.pubkey}:${questionEvent.dTag}`;
goto('/q/' + $questionId);
login(); login();
} }
async function postQuestion() { async function postQuestion() {