mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-28 09:31:17 +01:00
Merge branch 'master' into develop
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
"topics": "Topics",
|
||||
"remote-posts": "Remote Posts",
|
||||
"remote-topics": "Remote Topics",
|
||||
"messages": "Messages",
|
||||
"page-views-seven": "Last 7 Days",
|
||||
"page-views-thirty": "Last 30 Days",
|
||||
"page-views-last-day": "Last 24 hours",
|
||||
|
||||
@@ -140,7 +140,8 @@ async function getStats() {
|
||||
getStatsForSet('topics:tid', 'topicCount'),
|
||||
meta.config.activitypubEnabled ? getStatsForSet('postsRemote:pid', '') : null,
|
||||
meta.config.activitypubEnabled ? getStatsForSet('topicsRemote:tid', '') : null,
|
||||
])).filter(Boolean);
|
||||
getStatsForSet('messages:mid', 'messageCount'),
|
||||
]));
|
||||
|
||||
results[0].name = '[[admin/dashboard:graphs.page-views]]';
|
||||
results[1].name = '[[admin/dashboard:unique-visitors]]';
|
||||
@@ -162,6 +163,8 @@ async function getStats() {
|
||||
if (results[7]) {
|
||||
results[7].name = '[[admin/dashboard:remote-topics]]';
|
||||
}
|
||||
results[8].name = '[[admin/dashboard:messages]]';
|
||||
results = results.filter(Boolean);
|
||||
|
||||
({ results } = await plugins.hooks.fire('filter:admin.getStats', {
|
||||
results,
|
||||
|
||||
Reference in New Issue
Block a user