Some cosmetic fixes

This commit is contained in:
localhost_frssoft 2022-05-11 00:12:49 +03:00
parent 6d22fea77c
commit d203791dfa

View file

@ -599,14 +599,15 @@ thread_menu()
timeline_api() timeline_api()
{ {
timelines_params="limit=$max_statuses&max_id=$1&min_id=$2"
case "$timeline" in case "$timeline" in
"home") default_curl_opt "$instance_point/timelines/home?limit=$max_statuses&max_id=$1&min_id=$2" ;; "home") default_curl_opt "$instance_point/timelines/home?$timelines_params" ;;
"home/local") default_curl_opt "$instance_point/timelines/home?local=true&limit=$max_statuses&max_id=$1&min_id=$2" ;; "home/local") default_curl_opt "$instance_point/timelines/home?local=true&$timelines_params" ;;
"favourites") default_curl_opt "$instance_point/favourites?limit=$max_statuses&max_id=$1&min_id=$2" ;; "favourites") default_curl_opt "$instance_point/favourites?$timelines_params" ;;
"bookmarks") default_curl_opt "$instance_point/bookmarks?limit=$max_statuses&max_id=$1&min_id=$2" ;; "bookmarks") default_curl_opt "$instance_point/bookmarks?$timelines_params" ;;
"direct") default_curl_opt "$instance_point/timelines/direct?limit=$max_statuses&max_id=$1&min_id=$2" ;; "direct") default_curl_opt "$instance_point/timelines/direct?$timelines_params" ;;
"public") default_curl_opt "$instance_point/timelines/public?limit=$max_statuses&max_id=$1&min_id=$2" ;; "public") default_curl_opt "$instance_point/timelines/public?$timelines_params" ;;
"local") default_curl_opt "$instance_point/timelines/public?local=true&limit=$max_statuses&max_id=$1&min_id=$2" ;; "local") default_curl_opt "$instance_point/timelines/public?local=true&$timelines_params" ;;
esac esac
} }
@ -815,7 +816,8 @@ write_status_menu()
;; ;;
"Add recipient") "Add recipient")
echo 'Input addr (ex. nick,nick_etc@domain.domain)' echo 'Input addr (ex. nick,nick_etc@domain.domain)'
read mentions_reply ;; read mentions_reply
;;
"Change type") content_type=$(echo 'text/plain\ntext/markdown\ntext/html' | fzy) ;; "Change type") content_type=$(echo 'text/plain\ntext/markdown\ntext/html' | fzy) ;;
"Visiblity") "Visiblity")
status_visibility=$(echo 'public\nunlisted\nlocal\nprivate\ndirect\nlist' | fzy) status_visibility=$(echo 'public\nunlisted\nlocal\nprivate\ndirect\nlist' | fzy)