Add posts stats to community webhook (58 posts)

This commit is contained in:
Kato
2026-09-05 10:17:36 +00:00
parent ee3ba7e30f
commit ae94e2f2b6
+4 -1
View File
@@ -127,8 +127,11 @@ async function loadCommunityStats() {
if (data.users !== undefined) { if (data.users !== undefined) {
animateCounter('stat-members', data.users); animateCounter('stat-members', data.users);
} }
if (data.posts !== undefined) {
animateCounter('stat-posts', data.posts);
}
if (data.topics !== undefined) { if (data.topics !== undefined) {
document.getElementById('stat-wiki').textContent = data.topics; animateCounter('stat-wiki', data.topics);
} }
} catch (error) { } catch (error) {
console.error('Failed to load community stats:', error); console.error('Failed to load community stats:', error);