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?;
println!("whoami: {}", id);
// let name = SsbMessageContent::About {
// about: id.clone(),
// name: Some("golgi".to_string()),
// title: None,
// branch: None,
// image: None,
// description: None,
// location: None,
// start_datetime: None,
// };
//
// let name_msg_ref = sbot_client.publish(name).await?;
// println!("name_msg_ref: {}", name_msg_ref);
let name = SsbMessageContent::About {
about: id.clone(),
name: Some("golgi".to_string()),
title: None,
branch: None,
image: None,
description: None,
location: None,
start_datetime: None,
};
let name_msg_ref = sbot_client.publish(name).await?;
println!("name_msg_ref: {}", name_msg_ref);
let post = SsbMessageContent::Post {
text: "golgi go womp womp".to_string(),