Skip to content

Commit

Permalink
log fed
Browse files Browse the repository at this point in the history
  • Loading branch information
CutestNekoAqua committed Nov 22, 2024
1 parent 8a61240 commit ffa14e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/activities/create_post.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use activitypub_federation::{
};
use sea_orm::{ColumnTrait, EntityTrait, QueryFilter};
use serde::{Deserialize, Serialize};
use tracing::info;
use url::Url;

#[derive(Deserialize, Serialize, Debug)]
Expand Down Expand Up @@ -120,9 +121,10 @@ async fn federate_inbox(note: crate::entities::post::Model) -> anyhow::Result<()

let req_client = request_client();
for inbox in array {
let push = req_client.post(inbox)
let push = req_client.post(inbox.clone())
.json(&json)
.send();
info!("{}", inbox.to_string());
tokio::spawn(push);
}

Expand Down

0 comments on commit ffa14e2

Please sign in to comment.