From 1ce19c292832d076e7b328fec2411f4c5323462e Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Sun, 31 Dec 2023 09:04:17 -0800 Subject: [PATCH] nodeinfo: stop counting posts and comments dynamically queries have gotten too heavy, sadly --- pages.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pages.py b/pages.py index e51065d..44c4683 100644 --- a/pages.py +++ b/pages.py @@ -357,12 +357,13 @@ def nodeinfo(): # 'activeMonth': # 'activeHalfyear': }, - 'localPosts': Object.query(Object.source_protocol.IN(('web', 'webmention')), - Object.type.IN(['note', 'article']), - ).count(), - 'localComments': Object.query(Object.source_protocol.IN(('web', 'webmention')), - Object.type == 'comment', - ).count(), + # these are too heavy + # 'localPosts': Object.query(Object.source_protocol.IN(('web', 'webmention')), + # Object.type.IN(['note', 'article']), + # ).count(), + # 'localComments': Object.query(Object.source_protocol.IN(('web', 'webmention')), + # Object.type == 'comment', + # ).count(), }, 'openRegistrations': True, 'metadata': {},