From d4f50973179cad85008f9b553528f4ce3eafec4a Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Sat, 26 Nov 2022 21:56:33 -0700 Subject: [PATCH] Enumerate pending follows, fix CSS --- projects/activitypub_relay/src/python/relay/views.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/projects/activitypub_relay/src/python/relay/views.py b/projects/activitypub_relay/src/python/relay/views.py index 2bb698a..a2da4b9 100644 --- a/projects/activitypub_relay/src/python/relay/views.py +++ b/projects/activitypub_relay/src/python/relay/views.py @@ -25,17 +25,18 @@ def register_route(method, path): @register_route("GET", "/") async def home(request): - targets = "" + following = "" + following_count = len(request.app.database.hostnames) + requested = "" + requested_count = len(request.app.database["follow-requests"]) note = request.app.config.note - count = len(request.app.database.hostnames) host = request.app.config.host text = f"""\ ActivityPub Relay at {host}