fix: not return http code when share status

This commit is contained in:
localhost_frssoft 2022-04-12 20:26:15 +03:00
parent 61f006000d
commit 7ac63456c6

View file

@ -119,7 +119,7 @@ timeline_menu()
if [ "$status_id" = 's' ]; then if [ "$status_id" = 's' ]; then
sharemode=0 sharemode=0
else else
share_api_status $status_id >> /dev/null share_api_status $status_id
echo $http_code echo $http_code
fi fi
done done
@ -133,7 +133,7 @@ timeline_menu()
share_api_status() 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() write_api_status()