function reply() { url="https://$host/xrpc/com.atproto.repo.createRecord" col="app.bsky.feed.post" json="{ \"repo\": \"$handle\", \"did\": \"$did\", \"collection\": \"$col\", \"record\": { \"text\": \"$text\", \"createdAt\": \"$date\", \"reply\": { \"root\": { \"cid\": \"$cid\", \"uri\": \"$uri\" }, \"parent\": { \"cid\": \"$cid_p\", \"uri\": \"$uri_p\" } } } }" echo $json|jq . url=https://$host/xrpc/com.atproto.repo.createRecord j=`curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $token" -d "$json" $url` }