mirror of
https://github.com/edufeed-org/polloer.git
synced 2025-12-07 23:34:31 +00:00
Fix generation of questionId
This commit is contained in:
parent
dc1bbde182
commit
ef79a633e7
1 changed files with 3 additions and 2 deletions
|
|
@ -29,9 +29,10 @@
|
|||
'#d': [sessionId + ''] // filter by `d` tag
|
||||
};
|
||||
console.log(filter);
|
||||
const question = await $ndk.fetchEvent(filter);
|
||||
const questionEvent = await $ndk.fetchEvent(filter);
|
||||
console.log('question', question);
|
||||
goto('/q/' + question.id);
|
||||
$questionId = `${questionEvent.kind}:${questionEvent.pubkey}:${questionEvent.dTag}`;
|
||||
goto('/q/' + $questionId);
|
||||
login();
|
||||
}
|
||||
async function postQuestion() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue