2026-04-08 18:49 UTC
Run this in your Mastodon archive to get a list of your most faved toots! (Written with @piko.)
jq -r '[.orderedItems[]|select(.type=="Create")|.object]|sort_by(-.likes.totalItems)[]|"<a href=\"\(.url)\">\(.published)</a><div>\(.content)</div>\([.attachment[]|if.mediaType|startswith("video/")then"<video src=\".\(.url)\" width=\"300px\" controls></video>"else"<img src=\".\(.url)\" width=\"500px\">" end]|join(""))<br><br>🔁 \(.shares.totalItems) ⭐ \(.likes.totalItems)<hr>"' outbox.json>index.html
Replies (1)
-
@piko@chaos.social 2026-04-08 19:18
#jqPosting