diff options
| author | Martin Fischer <martin@push-f.com> | 2026-10-25 19:55:27 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-10-25 20:02:36 +0100 |
| commit | f57592a0ff38fb5b7418438d4804fc4ec0a4ae3a (patch) | |
| tree | 8a492b157dc4a83bb74a1cb1249fbcb858df2be2 /src/bots | |
| parent | 41212a7a15198e53d205252a02069a7dd6ddadeb (diff) | |
feat(fdroid): set langs and tags for posts
Diffstat (limited to 'src/bots')
| -rw-r--r-- | src/bots/fdroid/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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<PendingPost>) -> Result<Vec<Post>, 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<PendingPost>) -> Result<Vec<Post>, S text: post.text, facets: post.facets, images, + langs: vec![english.clone()], + tags: vec!["F-Droid".to_owned()], }); } |
