From 051d6e51e86268b6dcecbd4f12382c45e8398a1d Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Tue, 31 Jan 2023 00:34:45 -0500 Subject: [PATCH] Gimeline actually shows up now. --- ratatoskr.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ratatoskr.sh b/ratatoskr.sh index f94a728..21bbc7a 100755 --- a/ratatoskr.sh +++ b/ratatoskr.sh @@ -255,12 +255,12 @@ while : ; do fi # process the response to get the latest event id - latest_id="$(jq -r '.data[0].id' <<< "$result")" + latest_id="$(jq -r '.[].id' <<< "$result")" if [[ "${since_id}" != "${latest_id}" ]]; then # handle new events - events="$(jq -r '.data[] | "\(.account.username): \(.content)"' <<< "$result")" + events="$(jq -r '.[].content' <<< "$result")" echo -e "$events" | while read -r event; do - echo "$event" + echo "$event" | sed -e 's/<[^>]*>//g' echo done since_id="$latest_id"