This commit is contained in:
April John 2024-11-24 16:44:43 +01:00
parent 9c33416cec
commit f7de3bc3e1

View file

@ -125,10 +125,8 @@ async fn federate_inbox(note: crate::entities::post::Model) -> anyhow::Result<()
.one(db) .one(db)
.await?.unwrap(); .await?.unwrap();
let versia_user = versia_user_from_db(model).await?; let versia_user = versia_user_from_db(model).await?;
let header = format!("https://{}/apbridge/versia/query?user_url={}", "ap.beta.versia.social", versia_user.uri.to_string()); //TODO jesse needs to fix this
for inbox in array { for inbox in array {
let push = req_client.post(inbox.clone()) let push = req_client.post(inbox.clone())
.header("X-Signed-By", header.clone())
.json(&json); .json(&json);
warn!("{}", inbox.to_string()); warn!("{}", inbox.to_string());
tokio::spawn(push_to_inbox(push)); tokio::spawn(push_to_inbox(push));