mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-25 15:01:29 +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)
|
dateutc=$(echo "$status" | jj created_at)
|
||||||
reply_to_id=$(echo "$status" | jj in_reply_to_id)
|
reply_to_id=$(echo "$status" | jj in_reply_to_id)
|
||||||
visibility_status=$(echo "$status" | jj visibility)
|
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 "| $(date -d "$dateutc" "$format_time") $visibility_status $whoacct"
|
||||||
echo "| <$id_status> $uri"
|
echo "| <$id_status> $uri"
|
||||||
if [ -n "$reply_to_id" ]; then
|
if [ -n "$reply_to_id" ]; then
|
||||||
|
@ -367,7 +371,7 @@ statuses_render()
|
||||||
next=0
|
next=0
|
||||||
force_stop=0
|
force_stop=0
|
||||||
while [ "$next" -eq 0 ]; do
|
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
|
case "$per_status_menu" in
|
||||||
"Next") next=1; clear ;;
|
"Next") next=1; clear ;;
|
||||||
"Media")
|
"Media")
|
||||||
|
|
Loading…
Reference in a new issue