mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-21 19:41:30 +00:00
Hide share button if status private or direct
This commit is contained in:
parent
02cff53107
commit
b11356a0cf
|
@ -337,6 +337,10 @@ statuses_render()
|
|||
dateutc=$(echo "$status" | jj created_at)
|
||||
reply_to_id=$(echo "$status" | jj in_reply_to_id)
|
||||
visibility_status=$(echo "$status" | jj visibility)
|
||||
s_f_menu='\nShare and favorite\nShare'
|
||||
if [ "$visibility_status" = "private" ] | [ "$visibility_status" = "direct" ]; then
|
||||
s_f_menu=
|
||||
fi
|
||||
echo "| $(date -d "$dateutc" "$format_time") $visibility_status $whoacct"
|
||||
echo "| <$id_status> $uri"
|
||||
if [ -n "$reply_to_id" ]; then
|
||||
|
@ -367,7 +371,7 @@ statuses_render()
|
|||
next=0
|
||||
force_stop=0
|
||||
while [ "$next" -eq 0 ]; do
|
||||
per_status_menu=$(echo "Next$menuattachments\nShare and favorite\nShare\nFavorite\nReply\nBack" | fzy)
|
||||
per_status_menu=$(echo "Next$menuattachments"$s_f_menu"\nFavorite\nReply\nBack" | fzy)
|
||||
case "$per_status_menu" in
|
||||
"Next") next=1; clear ;;
|
||||
"Media")
|
||||
|
|
Loading…
Reference in a new issue