mirror of
https://github.com/edufeed-org/polloer.git
synced 2025-12-09 16:24: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
|
'#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() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue