Fix example
This commit is contained in:
parent
9027ebfe84
commit
6fd27827a0
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue