+6
-8
bot/src/main.rs
+6
-8
bot/src/main.rs
···
275
275
};
276
276
277
277
// Fetch the pre-rendered image from the external service instead of rendering via Chromium
278
-
let encoded_subject = urlencoding::encode(&repo_subject);
279
-
let url = format!(
280
-
"https://tangled-search.bigmoves.deno.net/repo-image/{}",
281
-
encoded_subject
278
+
let tangled_og_image = format!("{tangled_sh_url}/opengraph");
279
+
log::info!(
280
+
"Attempting to get the picture at: {tangled_og_image}"
282
281
);
283
-
log::info!("Attempting to get the picture at: {url}");
284
282
285
283
let post_text =
286
284
format!("{handle_and_repo}{description}\n⭐️ {stars}");
287
285
288
-
let response = reqwest::get(url).await?;
286
+
let response = reqwest::get(tangled_og_image).await?;
289
287
290
288
let embed = match response.status().is_success() {
291
289
true => {
···
306
304
),
307
305
aspect_ratio: Some(
308
306
atrium_api::app::bsky::embed::defs::AspectRatioData {
309
-
height: NonZeroU64::try_from(400_u64)?,
310
-
width: NonZeroU64::try_from(800_u64)?,
307
+
width: NonZeroU64::try_from( 1_200_u64)?,
308
+
height: NonZeroU64::try_from(630_u64)?,
311
309
}
312
310
.into(),
313
311
),