From e5693b61b08dbb1493f0220a165040f83b1f285c Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Thu, 5 Feb 2026 17:25:02 -0500 Subject: [PATCH] Show recently active threads by last activity, not creation date. A 7-year-old thread getting bumped is a sign of life. --- remarkbox/templates/topsecret-dashboard.j2 | 2 +- remarkbox/views/authenticated/topsecret.py | 14 ++------------ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/remarkbox/templates/topsecret-dashboard.j2 b/remarkbox/templates/topsecret-dashboard.j2 index d0478cf..cc7317e 100644 --- a/remarkbox/templates/topsecret-dashboard.j2 +++ b/remarkbox/templates/topsecret-dashboard.j2 @@ -218,7 +218,7 @@ {# --- RECENT THREADS --- #}
-

recent threads

+

recently active threads

{% if nodes %} {%- for node in nodes %}
diff --git a/remarkbox/views/authenticated/topsecret.py b/remarkbox/views/authenticated/topsecret.py index 9524006..b1a4c39 100644 --- a/remarkbox/views/authenticated/topsecret.py +++ b/remarkbox/views/authenticated/topsecret.py @@ -144,18 +144,8 @@ def topsecret_dashboard(request): .all() ) - # --- Recent root nodes (created in last 30 days) --- - recent_roots = ( - db.query(Node) - .filter( - Node.parent_id == None, - Node.verified == True, - Node.disabled == False, - Node.created > now_ms - thirty_days_ms, - ) - .order_by(Node.created.desc()) - .limit(50) - ) + # --- Recently active threads (by last activity) --- + recent_roots = get_topsecret_roots(db).limit(50) return { "the_title": "topsecret",