From f57592a0ff38fb5b7418438d4804fc4ec0a4ae3a Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 25 Oct 2026 19:55:27 +0100 Subject: feat(fdroid): set langs and tags for posts --- src/bots/fdroid/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/bots') diff --git a/src/bots/fdroid/mod.rs b/src/bots/fdroid/mod.rs index c0e7198..d6cd612 100644 --- a/src/bots/fdroid/mod.rs +++ b/src/bots/fdroid/mod.rs @@ -3,7 +3,7 @@ mod index; use atrium_api::app::bsky::richtext::facet::{ByteSliceData, LinkData, MainData, MainFeaturesItem}; -use atrium_api::types::Union; +use atrium_api::types::{Union, string::Language}; use reqwest::{ StatusCode, header::{ETAG, IF_NONE_MATCH}, @@ -428,6 +428,7 @@ impl PostBuilder { async fn download_images(pending_posts: Vec) -> Result, String> { let client = http_client(); + let english: Language = "en".parse().unwrap(); let mut posts = Vec::with_capacity(pending_posts.len()); for (post_index, post) in pending_posts.into_iter().enumerate() { @@ -463,6 +464,8 @@ async fn download_images(pending_posts: Vec) -> Result, S text: post.text, facets: post.facets, images, + langs: vec![english.clone()], + tags: vec!["F-Droid".to_owned()], }); } -- cgit v1.3.1