mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 14:48:19 +01:00
thing
This commit is contained in:
parent
9c33416cec
commit
f7de3bc3e1
|
|
@ -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));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue