mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2025-03-21 09:52:03 +00:00
Compare commits
2 commits
135554fe5b
...
02cff53107
Author | SHA1 | Date | |
---|---|---|---|
02cff53107 | |||
5ec56bc8a3 |
1 changed files with 7 additions and 2 deletions
|
@ -355,9 +355,11 @@ statuses_render()
|
|||
fi
|
||||
echo "$status" | jj -r content | delqse | html_to_txt_render
|
||||
attachments=$(echo "$status" | jj -l media_attachments.#.remote_url | delq)
|
||||
menuattachments=
|
||||
if [ -n "$attachments" ]; then
|
||||
echo "#EXTINF:-1, $uri" >> attachments.m3u8
|
||||
echo '[Attachments:]'
|
||||
menuattachments='\nMedia'
|
||||
echo "$attachments" | tee -a attachments.m3u8
|
||||
fi
|
||||
echo "$statuses_separator"
|
||||
|
@ -365,7 +367,7 @@ statuses_render()
|
|||
next=0
|
||||
force_stop=0
|
||||
while [ "$next" -eq 0 ]; do
|
||||
per_status_menu=$(echo 'Next\nMedia\nShare and favorite\nShare\nFavorite\nReply\nBack' | fzy)
|
||||
per_status_menu=$(echo "Next$menuattachments\nShare and favorite\nShare\nFavorite\nReply\nBack" | fzy)
|
||||
case "$per_status_menu" in
|
||||
"Next") next=1; clear ;;
|
||||
"Media")
|
||||
|
@ -521,7 +523,10 @@ reply_mode()
|
|||
echo "$reply_status" | jj content | html_to_txt_render | sed 's/^/> /' > tmp_status.md
|
||||
fi
|
||||
if [ "$copy_mentions" = 'true' ]; then
|
||||
mentions_reply=$(echo "$reply_status" | jj -l 'mentions.#.acct' | delq | legacy_addr_preprocess | tr '\n' ',' | sed 's/,$//g')
|
||||
mentions_reply=$(echo "$reply_status" | jj -l 'mentions.#.acct' | delq | legacy_addr_preprocess)
|
||||
mentions_reply="$mentions_reply\n"
|
||||
acct_selfstatus=$(echo "$reply_status" | jj account.acct | legacy_addr_preprocess)
|
||||
mentions_reply=$(echo "$mentions_reply""$acct_selfstatus" | sort -u | tr '\n' ',' | sed -e 's/,$//g; s/^,//g')
|
||||
fi
|
||||
write_status_menu "$(echo "$reply_status" | jj id)"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue