Merge branch 'master' into develop

This commit is contained in:
Barış Soner Uşaklı
2026-02-27 18:41:53 -05:00
2 changed files with 5 additions and 1 deletions

View File

@@ -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",

View File

@@ -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,