From ae94e2f2b62640293ed1c54e4a426a21190e6ae3 Mon Sep 17 00:00:00 2001 From: Kato Date: Sat, 5 Sep 2026 10:17:36 +0000 Subject: [PATCH] Add posts stats to community webhook (58 posts) --- js/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 667dad7..7ae5273 100644 --- a/js/main.js +++ b/js/main.js @@ -127,8 +127,11 @@ async function loadCommunityStats() { if (data.users !== undefined) { animateCounter('stat-members', data.users); } + if (data.posts !== undefined) { + animateCounter('stat-posts', data.posts); + } if (data.topics !== undefined) { - document.getElementById('stat-wiki').textContent = data.topics; + animateCounter('stat-wiki', data.topics); } } catch (error) { console.error('Failed to load community stats:', error);