feature: forum posts working

This commit is contained in:
Andy Burke 2025-09-16 19:10:26 -07:00
parent 7e4ab72fe6
commit 778d1b3aef
13 changed files with 352 additions and 77 deletions

View file

@ -145,14 +145,6 @@ async function load_active_topic_for_chat() {
topic_chat_content.innerHTML = "";
const topic_selectors = document.querySelectorAll("li.topic");
for (const topic_selector of topic_selectors) {
topic_selector.classList.remove("active");
if (topic_selector.id === `topic-selector-${topic_id}`) {
topic_selector.classList.add("active");
}
}
const events_response = await api.fetch(
`/api/topics/${topic_id}/events?type=chat&limit=100&sort=newest`,
);