mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-22 02:01:27 +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
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue