From ba0bc06b8cda94d39c0a3de3494de61b8c021ecb Mon Sep 17 00:00:00 2001
From: Daenney
Date: Tue, 4 Jul 2023 11:33:07 +0200
Subject: [PATCH] [feature] Add instance stats to /about (#1936)
When you configure the landing-page-user redirect, you lose access to
the one page that displays server stats. This adds the same stats as we
have on / to /about to bring those back.
---
web/template/about.tmpl | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/web/template/about.tmpl b/web/template/about.tmpl
index 89e033287..6c22b98ee 100644
--- a/web/template/about.tmpl
+++ b/web/template/about.tmpl
@@ -81,6 +81,15 @@
{{end}}
+
+
+
Instance Statistics
+
+ - Users: {{.instance.Stats.user_count}}
+ - Posts: {{.instance.Stats.status_count}}
+ - Federates with: {{.instance.Stats.domain_count}} instances
+
+
{{ template "footer.tmpl" .}}
\ No newline at end of file