From feb13c82ebac3bcab2123e5ca19e220d5dc8eefd Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Mon, 20 Jun 2022 12:11:03 +0300 Subject: [PATCH] fixed search; per status mode still recomended enable --- config.json | 2 +- pleroma-cli.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index e559008..9e85cd7 100644 --- a/config.json +++ b/config.json @@ -5,7 +5,7 @@ "i2p_http_proxy_addr": "http://127.0.0.1:4444", "tor_proxy_addr": "socks5://127.0.0.1:9050", "max_statuses": 40, - "per_status_mode": false, + "per_status_mode": true, "enabled_nsfw": true, "nsfw_only": false, "hide_reblogs": false, diff --git a/pleroma-cli.sh b/pleroma-cli.sh index 876fad2..4529048 100755 --- a/pleroma-cli.sh +++ b/pleroma-cli.sh @@ -622,7 +622,11 @@ search_api_statuses() { echo "Input query:" read query - results=$(default_curl_opt "$instance_point/search?q=$query&type=statuses" | jj 'statuses') + results=$(default_curl_opt --get \ + --data-urlencode "q=$query" \ + --data-urlencode 'type=statuses' \ + --data-urlencode "limit=$max_statuses" \ + "$instance_point/search" | jj 'statuses') timeline='search' timeline_menu }