From 702248348c223ccf8722ed1c90cdacae49eeb5fd Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 20 May 2024 09:36:20 +0200 Subject: [PATCH] fix: should be overkill but better safe?? --- src/routes/activitypub/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }