From b2b853c052b9f6e8a5c83f6501ceb3d2dff0fdc9 Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 24 Feb 2026 12:46:04 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20actors.profile=20=E2=86=92=20activitypub.?= =?UTF-8?q?actor=5Fprofile=20endpoint=20references?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The AP blueprint was consolidated but 4 references to the old 'actors.profile' endpoint remained, causing BuildError on social pages. Co-Authored-By: Claude Opus 4.6 --- bp/identity/routes.py | 6 +++--- templates/_types/social/header/_header.html | 2 +- templates/federation/account.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bp/identity/routes.py b/bp/identity/routes.py index 673ea0c..b445eda 100644 --- a/bp/identity/routes.py +++ b/bp/identity/routes.py @@ -37,7 +37,7 @@ def register(url_prefix="/identity"): # Already has a username? actor = await services.federation.get_actor_by_user_id(g.s, g.user.id) if actor: - return redirect(url_for("actors.profile", username=actor.preferred_username)) + return redirect(url_for("activitypub.actor_profile", username=actor.preferred_username)) return await render_template("federation/choose_username.html") @@ -49,7 +49,7 @@ def register(url_prefix="/identity"): # Already has a username? existing = await services.federation.get_actor_by_user_id(g.s, g.user.id) if existing: - return redirect(url_for("actors.profile", username=existing.preferred_username)) + return redirect(url_for("activitypub.actor_profile", username=existing.preferred_username)) form = await request.form username = (form.get("username") or "").strip().lower() @@ -84,7 +84,7 @@ def register(url_prefix="/identity"): next_url = request.args.get("next") if next_url: return redirect(next_url) - return redirect(url_for("actors.profile", username=actor.preferred_username)) + return redirect(url_for("activitypub.actor_profile", username=actor.preferred_username)) @bp.get("/check-username") async def check_username(): diff --git a/templates/_types/social/header/_header.html b/templates/_types/social/header/_header.html index df6aedb..3bc55e3 100644 --- a/templates/_types/social/header/_header.html +++ b/templates/_types/social/header/_header.html @@ -34,7 +34,7 @@ - @{{ actor.preferred_username }} diff --git a/templates/federation/account.html b/templates/federation/account.html index 32c40a0..ef7f7d6 100644 --- a/templates/federation/account.html +++ b/templates/federation/account.html @@ -9,7 +9,7 @@ {% if actor %}

Username: @{{ actor.preferred_username }}

- View profile