1
0
mirror of https://gitlab.com/Anson-Projects/projects.git synced 2025-06-15 14:36:47 +00:00

Fix ghost upload

This commit is contained in:
Anson Biggs 2024-09-26 01:41:54 -06:00
parent 009602ac4e
commit a448e47ecd
3 changed files with 441 additions and 366 deletions

793
ghost-upload/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -6,14 +6,14 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
reqwest = { version = "0.11.24", features = ["json"] }
feed-rs = "1.4.0"
reqwest = { version = "0.12.7", features = ["json"] }
feed-rs = "2.1.0"
serde = { version = "1.0.197", features = ["derive"] }
tokio = { version = "1.36.0", features = ["full"] }
jsonwebtoken = "9.2.0"
serde_json = "1.0.114"
tokio = { version = "1.40.0", features = ["full"] }
jsonwebtoken = "9.3.0"
serde_json = "1.0.128"
clippy = "0.0.302"
hex = "0.4.3"
chrono = "0.4.34"
chrono = "0.4.38"
futures = "0.3.30"
maud = "0.26.0"

View File

@ -201,7 +201,7 @@ async fn main() {
.expect("JWT encoding failed");
// Prepare the post data
let mut entries = fetch_feed(feed).await;
let entries = fetch_feed(feed).await;
let post_exists_futures = entries.into_iter().map(|entry| {
let entry_clone = entry.clone(); // Clone entry if necessary (depends on your data structure)