Run this in your Mastodon archive to get a list of your most faved toots! (Writt...
blinry @blinry@chaos.social
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