diff --git a/src/routes/activitypub/application.rs b/src/routes/activitypub/application.rs index 1050c839..7d9aa4ea 100644 --- a/src/routes/activitypub/application.rs +++ b/src/routes/activitypub/application.rs @@ -13,7 +13,7 @@ pub async fn view( ) -> crate::Result { if let Some(accept) = headers.get("Accept") { if let Ok(accept) = accept.to_str() { - if accept.contains("text/html") { + if accept.contains("text/html") && !accept.contains("application/ld+json") { return Ok(Redirect::to("/web").into_response()); } }