mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-25 15:01:29 +00:00
fix: not return http code when share status
This commit is contained in:
parent
61f006000d
commit
7ac63456c6
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue