From 7ac63456c6e9b44497557f6c1b3dd618e9d514df Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Tue, 12 Apr 2022 20:26:15 +0300 Subject: [PATCH] fix: not return http code when share status --- pleroma-cli.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pleroma-cli.sh b/pleroma-cli.sh index f358ce9..8af3e6e 100755 --- a/pleroma-cli.sh +++ b/pleroma-cli.sh @@ -119,7 +119,7 @@ timeline_menu() if [ "$status_id" = 's' ]; then sharemode=0 else - share_api_status $status_id >> /dev/null + share_api_status $status_id echo $http_code fi done @@ -133,7 +133,7 @@ timeline_menu() share_api_status() { - curl -w "%{http_code}" -X POST -s --compressed -H "Authorization: Bearer $auth" --url $instance_point/statuses/$1/reblog + curl -w "%{http_code}" -X POST -s --compressed -H "Authorization: Bearer $auth" --url $instance_point/statuses/$1/reblog --output /dev/null } write_api_status()