{
html += ``
} else if (route.type === 'note') {
- // Note list page
- const noteCollection = 'ai.syui.note.post'
- const notePosts = await getPosts(did, noteCollection, localOnly)
+ // Note list page (reuse notePosts from above)
html += `${renderNoteListPage(notePosts, handle)}
`
html += ``
} else if (route.type === 'note-detail' && route.rkey) {
// Note detail page
- const noteCollection = 'ai.syui.note.post'
const notePost = await getPost(did, noteCollection, route.rkey, localOnly)
if (notePost) {
html += `${renderNoteDetailPage(notePost, handle, localOnly)}
`
@@ -486,7 +485,6 @@ async function render(route: Route): Promise {
// Setup note detail page
if (route.type === 'note-detail' && route.rkey) {
- const noteCollection = 'ai.syui.note.post'
const notePost = await getPost(did, noteCollection, route.rkey, localOnly)
if (notePost && localOnly) {
setupNoteDetail(notePost)