12345678910111213141516171819202122232425262728293031 |
- #!/bin/bash
- h="$1"
- l="$2"
- if [ -z "$h" ]; then echo "usage: fedi-tl hostname [true|false]" >&2; exit 1; fi
- if [ -z "$l" ]; then l=true; fi
- curl -k -vv -4 https://$h/api/v1/timelines/public?local=$l | \
- tee /tmp/fedi-tl-$h | \
- jq -r 'map(.account.acct + " [" + .created_at + "]", "\t" + .pleroma.content["text/plain"], "\n")|join("\n")'
|