mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 14:48:19 +01:00
Fix formatting issues and add signed fetch actor in main.rs
This commit is contained in:
parent
e59bcfbc60
commit
7266790889
|
|
@ -18,7 +18,7 @@ use std::{
|
||||||
sync::{Arc, Mutex},
|
sync::{Arc, Mutex},
|
||||||
};
|
};
|
||||||
use tokio::signal;
|
use tokio::signal;
|
||||||
use tracing::info;
|
use tracing::{info, instrument::WithSubscriber};
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
use crate::database::{Config, State};
|
use crate::database::{Config, State};
|
||||||
|
|
@ -107,6 +107,7 @@ async fn main() -> actix_web::Result<(), anyhow::Error> {
|
||||||
.domain(env::var("FEDERATED_DOMAIN").expect("FEDERATED_DOMAIN must be set"))
|
.domain(env::var("FEDERATED_DOMAIN").expect("FEDERATED_DOMAIN must be set"))
|
||||||
.app_data(state.clone())
|
.app_data(state.clone())
|
||||||
.http_signature_compat(true)
|
.http_signature_compat(true)
|
||||||
|
.signed_fetch_actor(&state.local_user().await.unwrap())
|
||||||
.build()
|
.build()
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue