Files
StarPunk/docs/design/v2.13.4/2026-11-10-list-counts.md
T

1.2 KiB

v2.13.4: Counts on lists of notes, reply cards as links

What changed

  • webmention_queries.response_counts(note_ids): likes, reposts and replies per note in two grouped queries (shown webmentions, plus the anonymous counts on synced syndications rows). routes/public.py attach_response_counts() runs after attach_contexts() on the home, tag and Likes pages.
  • partials/responses.html list_counts: icons and numbers in the note's meta line, linking to <permalink>#responses (an anchor on the note page).
  • Reply cards: the date link (already the reply's own URL) stretches over the card with ::after; author and content links sit above it.
  • v2.13.2's .reaction* classes clashed with the older .reaction lines (Liked / Reposted / In reply to, partials/reaction.html): the counts line now uses .response-count* / .response-card* / .response-*.

Verification

  • tests/test_backfeed.py::test_home_page_shows_counts; template, route, microformats and likes/reposts tests pass.
  • Rendered the home page, a note page and the Likes page in headless Chromium: counts beside the date, quiet notes unchanged, the Liked line laid out as before v2.13.2.