mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-21 19:41:30 +00:00
Extended timelines
This commit is contained in:
parent
311a4e7dea
commit
1e47b96cb5
|
@ -429,7 +429,14 @@ thread_menu()
|
|||
|
||||
timeline_api()
|
||||
{
|
||||
default_curl_opt "$instance_point/$timeline?limit=$max_statuses&max_id=$1&min_id=$2"
|
||||
case "$timeline" in
|
||||
"home") default_curl_opt "$instance_point/timelines/home?limit=$max_statuses&max_id=$1&min_id=$2" ;;
|
||||
"home/local") default_curl_opt "$instance_point/timelines/home?local=true&limit=$max_statuses&max_id=$1&min_id=$2" ;;
|
||||
"favourites") default_curl_opt "$instance_point/favourites?limit=$max_statuses&max_id=$1&min_id=$2" ;;
|
||||
"direct") default_curl_opt "$instance_point/timelines/direct?limit=$max_statuses&max_id=$1&min_id=$2" ;;
|
||||
"public") default_curl_opt "$instance_point/timelines/public?limit=$max_statuses&max_id=$1&min_id=$2" ;;
|
||||
"local") default_curl_opt "$instance_point/timelines/public?local=true&limit=$max_statuses&max_id=$1&min_id=$2" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
timeline_menu()
|
||||
|
@ -667,7 +674,7 @@ fi
|
|||
case $main_menu in
|
||||
"$menu_write_status") write_status_menu ;;
|
||||
"$menu_timeline")
|
||||
timeline=$(echo 'timelines/home\nfavourites\ntimelines/direct\ntimelines/public' | fzy)
|
||||
timeline=$(echo 'home\nhome/local\nfavourites\ndirect\nlocal\npublic' | fzy)
|
||||
timeline_menu
|
||||
;;
|
||||
"$notif") notif_menu ;;
|
||||
|
|
Loading…
Reference in a new issue