From c4313c595d07a09dcfc99c7d9b404004b0915cf2 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Mon, 23 May 2022 11:29:00 +0300 Subject: [PATCH] Poll: visible variants in post --- pleroma-cli.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pleroma-cli.sh b/pleroma-cli.sh index cc0a96d..c6f305b 100755 --- a/pleroma-cli.sh +++ b/pleroma-cli.sh @@ -492,6 +492,12 @@ statuses_render() menuattachments='\nMedia' echo "$attachments" | tee -a attachments.m3u8 fi + poll=$(echo "$status" | jj poll.id) + if [ -n "$poll" ]; then + echo '[Poll:]' + echo "$(echo "$status" | jj -l 'poll.options.#.title')" + fi + echo "$statuses_separator" if [ "$per_status_mode" = 'true' ]; then next=0