Add posts stats to community webhook (58 posts)
This commit is contained in:
1 parent
ee3ba7e30f
commit
ae94e2f2b6
1 file changed
+4
-1
+4
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user