Gimeline actually shows up now.
This commit is contained in:
parent
0ce5af2bc4
commit
051d6e51e8
@ -255,12 +255,12 @@ while : ; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# process the response to get the latest event id
|
# 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
|
if [[ "${since_id}" != "${latest_id}" ]]; then
|
||||||
# handle new events
|
# 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 -e "$events" | while read -r event; do
|
||||||
echo "$event"
|
echo "$event" | sed -e 's/<[^>]*>//g'
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
since_id="$latest_id"
|
since_id="$latest_id"
|
||||||
|
Loading…
Reference in New Issue
Block a user