Fix actors.profile → activitypub.actor_profile endpoint references
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 51s

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 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-24 12:46:04 +00:00
parent f17dd923a6
commit b2b853c052
3 changed files with 5 additions and 5 deletions

View File

@@ -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():

View File

@@ -34,7 +34,7 @@
<span hx-get="{{ url_for('social.notification_count') }}" hx-trigger="load, every 30s" hx-swap="innerHTML"
class="absolute -top-2 -right-3 text-xs bg-red-500 text-white rounded-full px-1 empty:hidden"></span>
</a>
<a href="{{ url_for('actors.profile', username=actor.preferred_username) }}"
<a href="{{ url_for('activitypub.actor_profile', username=actor.preferred_username) }}"
class="px-2 py-1 rounded hover:bg-stone-200">
@{{ actor.preferred_username }}
</a>

View File

@@ -9,7 +9,7 @@
{% if actor %}
<p class="mt-2"><strong>Username:</strong> @{{ actor.preferred_username }}</p>
<p class="mt-1">
<a href="{{ url_for('actors.profile', username=actor.preferred_username) }}"
<a href="{{ url_for('activitypub.actor_profile', username=actor.preferred_username) }}"
class="text-blue-600 hover:underline">
View profile
</a>