Compare commits

..

2 Commits

Author SHA1 Message Date
localhost_frssoft 1247dd2d36 updatebbs inside bbs 2023-07-25 17:13:04 +03:00
localhost_frssoft 7ada3bd252 workaround for /n to \n 2023-07-25 17:08:36 +03:00
2 changed files with 7 additions and 1 deletions

View File

@ -83,6 +83,11 @@ while read -r cmd mesg; do
printf 'test io > '
done
;;
"updatebbs")
git pull
echo 'reconnect pls'
break
;;
*) break ;;
esac
printf 'bbs > '

View File

@ -1,7 +1,8 @@
#/bin/sh
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(){