Show recently active threads by last activity, not creation date.

A 7-year-old thread getting bumped is a sign of life.
This commit is contained in:
russell@unturf.com 2026-02-05 17:25:02 -05:00
parent 28120caf48
commit e5693b61b0
2 changed files with 3 additions and 13 deletions

View file

@ -218,7 +218,7 @@
{# --- RECENT THREADS --- #}
<div class="ts-card ts-full">
<h4>recent threads</h4>
<h4>recently active threads</h4>
{% if nodes %}
{%- for node in nodes %}
<div class="ts-item">

View file

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