From ec0e24db8d4eb0ce268e19189692fdc57efb63e1 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Thu, 14 May 2026 17:39:19 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20add=20GET=20/users/{username}/profile=20?= =?UTF-8?q?REST=20endpoint=20=E2=80=94=20AP=20actor=20owns=20/users/{usern?= =?UTF-8?q?ame}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/presentation/src/routes.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/presentation/src/routes.rs b/crates/presentation/src/routes.rs index 4772256..bdd2745 100644 --- a/crates/presentation/src/routes.rs +++ b/crates/presentation/src/routes.rs @@ -25,6 +25,9 @@ pub fn router() -> Router { get(users::get_me_following_list), ) .route("/users/me/top-friends", put(social::put_top_friends)) + // /users/{username} is owned by the AP router (returns AP actor JSON for federation). + // The REST user profile lives at /users/{username}/profile to avoid the conflict. + .route("/users/{username}/profile", get(users::get_user)) .route( "/users/{username}/top-friends", get(social::get_top_friends_handler),