1.5 KiB
1.5 KiB
v2.13.2: Reaction counts and web actions
Why
With backfeed live, notes showed "5 Likes" and "1 Repost" headings over rows of faces (blank until avatars were saved), plus a separate "On Threads: 1 like" line. The owner asked for the usual presentation: a flat count under the post, with who on hover. Web actions (https://indieweb.org/webactions) fit the same line.
What changed
templates/partials/responses.html:facepileandsilo_countsare replaced byreactions/reaction. Each count is a focusable.reactionwith an SVG icon; its.reaction-whocard lists the people (avatar, name, silo) inside a scrollable.reaction-people, Threads' anonymous counts, and an<indie-action>with links to the crossposts. The reply count has no people list (replies are listed below).templates/note.html: the counts line follows the note's footer; the Responses section shows only when there are replies, quotes or mentions.static/css/style.css: facepile styles replaced by.reactions; the card opens on:hoverand:focus-within(tap on touch screens).starpunk/avatars.py: a redirect from the own GoToSocial server (media it hasn't cached) is followed throughsafe_get.
Verification
tests/test_backfeed.py(24 tests): totals include Threads' anonymous count,<indie-action>and crosspost links present; redirected avatar saved. Microformats, template and route tests pass.- Rendered locally in headless Chromium in dark and light themes with the like and reply cards open.