From 3baaf86132178bb68092699109a0dd0ce3c3160c Mon Sep 17 00:00:00 2001 From: prcrst Date: Fri, 8 Mar 2024 09:28:55 +0100 Subject: [PATCH] Fix authentication --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index ee36b7f..e1579a2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,6 +68,7 @@ async fn post_to_lemmy( let response = client .post(helper::api_url("post")) + .header("Authorization", "Bearer ".to_owned() + &auth) .json(¶ms) .send() .await?;