diff options
author | Felix Ableitner <me@nutomic.com> | 2020-07-06 14:20:29 +0200 |
---|---|---|
committer | Felix Ableitner <me@nutomic.com> | 2020-07-06 14:20:29 +0200 |
commit | d03c435563be5a4ba564749785e90067aee41858 (patch) | |
tree | e9b13bdb3ddbca3b340daea9908d08342a83e1cf /server/src/routes/federation.rs | |
parent | bf69d595b40def7ecc622adf2425e185105bab78 (diff) |
Revert "Verify activitypub payload digests (#885)"
This reverts commit 916592944af8e32f2044c9acf0d57eb7991427a5.
Diffstat (limited to 'server/src/routes/federation.rs')
-rw-r--r-- | server/src/routes/federation.rs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/server/src/routes/federation.rs b/server/src/routes/federation.rs index 20b5dc83..fe6e3365 100644 --- a/server/src/routes/federation.rs +++ b/server/src/routes/federation.rs @@ -12,8 +12,6 @@ use crate::{ settings::Settings, }; use actix_web::*; -use http_signature_normalization_actix::digest::middleware::VerifyDigest; -use sha2::{Digest, Sha256}; pub fn config(cfg: &mut web::ServiceConfig) { if Settings::get().federation.enabled { @@ -40,12 +38,8 @@ pub fn config(cfg: &mut web::ServiceConfig) { .route("/comment/{comment_id}", web::get().to(get_apub_comment)), ) // Inboxes dont work with the header guard for some reason. - .service( - web::scope("/") - .wrap(VerifyDigest::new(Sha256::new())) - .route("/c/{community_name}/inbox", web::post().to(community_inbox)) - .route("/u/{user_name}/inbox", web::post().to(user_inbox)) - .route("/inbox", web::post().to(shared_inbox)), - ); + .route("/c/{community_name}/inbox", web::post().to(community_inbox)) + .route("/u/{user_name}/inbox", web::post().to(user_inbox)) + .route("/inbox", web::post().to(shared_inbox)); } } |