Fix example

This commit is contained in:
notplants 2022-01-14 12:41:15 -05:00
parent 9027ebfe84
commit 6fd27827a0
1 changed files with 13 additions and 13 deletions

View File

@ -10,19 +10,19 @@ async fn run() -> Result<(), GolgiError> {
let id = sbot_client.whoami().await?; let id = sbot_client.whoami().await?;
println!("whoami: {}", id); println!("whoami: {}", id);
// let name = SsbMessageContent::About { let name = SsbMessageContent::About {
// about: id.clone(), about: id.clone(),
// name: Some("golgi".to_string()), name: Some("golgi".to_string()),
// title: None, title: None,
// branch: None, branch: None,
// image: None, image: None,
// description: None, description: None,
// location: None, location: None,
// start_datetime: None, start_datetime: None,
// }; };
//
// let name_msg_ref = sbot_client.publish(name).await?; let name_msg_ref = sbot_client.publish(name).await?;
// println!("name_msg_ref: {}", name_msg_ref); println!("name_msg_ref: {}", name_msg_ref);
let post = SsbMessageContent::Post { let post = SsbMessageContent::Post {
text: "golgi go womp womp".to_string(), text: "golgi go womp womp".to_string(),