feature: forum posts working
This commit is contained in:
parent
7e4ab72fe6
commit
778d1b3aef
13 changed files with 352 additions and 77 deletions
|
|
@ -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`,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue