mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 14:48:19 +01:00
wicked
This commit is contained in:
parent
ffa14e2881
commit
44e9e0409d
|
|
@ -18,7 +18,7 @@ use activitypub_federation::{
|
||||||
};
|
};
|
||||||
use sea_orm::{ColumnTrait, EntityTrait, QueryFilter};
|
use sea_orm::{ColumnTrait, EntityTrait, QueryFilter};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use tracing::info;
|
use tracing::{info, warn};
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
#[derive(Deserialize, Serialize, Debug)]
|
#[derive(Deserialize, Serialize, Debug)]
|
||||||
|
|
@ -95,7 +95,9 @@ async fn federate_inbox(note: crate::entities::post::Model) -> anyhow::Result<()
|
||||||
|
|
||||||
let mut array;
|
let mut array;
|
||||||
if versia_post.mentions.is_some() {
|
if versia_post.mentions.is_some() {
|
||||||
|
info!("good");
|
||||||
array = versia_post.mentions.clone().unwrap();
|
array = versia_post.mentions.clone().unwrap();
|
||||||
|
info!("{:#?}", versia_post.mentions.clone().unwrap());
|
||||||
} else {
|
} else {
|
||||||
array = Vec::new();
|
array = Vec::new();
|
||||||
}
|
}
|
||||||
|
|
@ -124,7 +126,7 @@ async fn federate_inbox(note: crate::entities::post::Model) -> anyhow::Result<()
|
||||||
let push = req_client.post(inbox.clone())
|
let push = req_client.post(inbox.clone())
|
||||||
.json(&json)
|
.json(&json)
|
||||||
.send();
|
.send();
|
||||||
info!("{}", inbox.to_string());
|
warn!("{}", inbox.to_string());
|
||||||
tokio::spawn(push);
|
tokio::spawn(push);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue