From fc13009611bbf6236e2b2b7f7b96afecdb56797b Mon Sep 17 00:00:00 2001 From: Nutomic Date: Wed, 11 Sep 2024 14:53:24 +0200 Subject: [PATCH] In debug mode allow resolving objects without auth (#5013) --- crates/apub/src/api/resolve_object.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/apub/src/api/resolve_object.rs b/crates/apub/src/api/resolve_object.rs index 3f2591241..4c592aeeb 100644 --- a/crates/apub/src/api/resolve_object.rs +++ b/crates/apub/src/api/resolve_object.rs @@ -27,7 +27,7 @@ pub async fn resolve_object( // if there's no personId then the JWT was missing or invalid. let is_authenticated = local_user_view.is_some(); - let res = if is_authenticated { + let res = if is_authenticated || cfg!(debug_assertions) { // user is fully authenticated; allow remote lookups as well. search_query_to_object_id(data.q.clone(), &context).await } else {