Not much luck improving the jq stuff yet, but I did fix ' showing up as '.

This commit is contained in:
stormdragon2976 2023-02-01 22:51:26 -05:00
parent 36513b8db6
commit d7aa704cf1

View File

@ -199,6 +199,7 @@ show_timeline() {
# handle new events
events="$(jq -r '.[].content' <<< "$result")"
stripped_events="$(echo "$events" | sed -E 's/<[^>]+>//g')"
stripped_events="${stripped_events//&#39;/\'}"
usernames="$(jq -r '.[].account.username' <<< "$result")"
echo -e "$usernames" | while read -r username; do
echo "$username: $(echo "$stripped_events" | head -n 1)"