[WIP] A (somewhat barebones) atproto app for creating custom sites without hosting!

upload: chore: cargo fmt

vielle.dev 1df8217b 519b6262

verified
Changed files
+12 -4
upload
+8 -2
upload/src/main.rs
··· 275 ) 276 .await?; 277 278 - println!("Site is now updated. Live at {}", utils::site_handle(config.user)); 279 } else { 280 let oauth = oauth::client::OAuthClient::with_memory_store(); 281 let session = oauth ··· 311 ) 312 .await?; 313 314 - println!("Site is now updated. Live at {}", utils::site_handle(config.user)); 315 }; 316 317 Ok(())
··· 275 ) 276 .await?; 277 278 + println!( 279 + "Site is now updated. Live at {}", 280 + utils::site_handle(config.user) 281 + ); 282 } else { 283 let oauth = oauth::client::OAuthClient::with_memory_store(); 284 let session = oauth ··· 314 ) 315 .await?; 316 317 + println!( 318 + "Site is now updated. Live at {}", 319 + utils::site_handle(config.user) 320 + ); 321 }; 322 323 Ok(())
+4 -2
upload/src/utils.rs
··· 70 let method = user[1]; 71 let did = user[2]; 72 format!("https://{did}.did-{method}.atcities.dev/") 73 - } else { format!("https://{user}.atcities.dev/") } 74 - }
··· 70 let method = user[1]; 71 let did = user[2]; 72 format!("https://{did}.did-{method}.atcities.dev/") 73 + } else { 74 + format!("https://{user}.atcities.dev/") 75 + } 76 + }