Gimeline actually shows up now.

This commit is contained in:
stormdragon2976 2023-01-31 00:34:45 -05:00
parent 0ce5af2bc4
commit 051d6e51e8

View File

@ -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"