workaround for /n to \n

This commit is contained in:
localhost_frssoft 2023-07-25 17:08:36 +03:00
parent 2bfe5c5a4a
commit 7ada3bd252

View File

@ -1,7 +1,8 @@
#/bin/sh #/bin/sh
toot(){ toot(){
curl -s -X POST -F in_reply_to_id=$reply -F status="$1" -F visibility='unlisted' -H "Authorization: Bearer $instance_token" https://$instance/api/v1/statuses message="$(echo "$1" | sed -e 's!/n!\n!g')" # Just my android keyboard too dumb and far
curl -s -X POST -F in_reply_to_id=$reply -F status="$message" -F visibility='unlisted' -H "Authorization: Bearer $instance_token" https://$instance/api/v1/statuses
} }
timeline_render(){ timeline_render(){