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