Post #1039260
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 (2)
-
@blinry@chaos.social 2026-04-08 18:53
You can get your Mastodon archive in the settings (Import/Export). Unzip it and open a terminal in the main folder (the one with the file "outbox.json" in it). Copy the command from the above toot (jq .... html) into the terminal, and hit enter. You will need jq. Then, open the file "index.html" in your browser! Actually, this will give you a list of *all* your toots, but ordered by the number of favs. :D What's your most faved one?
-
@piko@chaos.social 2026-04-08 19:18
#jqPosting