Fix actors.profile → activitypub.actor_profile endpoint references
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 51s
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:
@@ -37,7 +37,7 @@ def register(url_prefix="/identity"):
|
|||||||
# Already has a username?
|
# Already has a username?
|
||||||
actor = await services.federation.get_actor_by_user_id(g.s, g.user.id)
|
actor = await services.federation.get_actor_by_user_id(g.s, g.user.id)
|
||||||
if actor:
|
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")
|
return await render_template("federation/choose_username.html")
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ def register(url_prefix="/identity"):
|
|||||||
# Already has a username?
|
# Already has a username?
|
||||||
existing = await services.federation.get_actor_by_user_id(g.s, g.user.id)
|
existing = await services.federation.get_actor_by_user_id(g.s, g.user.id)
|
||||||
if existing:
|
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
|
form = await request.form
|
||||||
username = (form.get("username") or "").strip().lower()
|
username = (form.get("username") or "").strip().lower()
|
||||||
@@ -84,7 +84,7 @@ def register(url_prefix="/identity"):
|
|||||||
next_url = request.args.get("next")
|
next_url = request.args.get("next")
|
||||||
if next_url:
|
if next_url:
|
||||||
return redirect(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")
|
@bp.get("/check-username")
|
||||||
async def check_username():
|
async def check_username():
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
<span hx-get="{{ url_for('social.notification_count') }}" hx-trigger="load, every 30s" hx-swap="innerHTML"
|
<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>
|
class="absolute -top-2 -right-3 text-xs bg-red-500 text-white rounded-full px-1 empty:hidden"></span>
|
||||||
</a>
|
</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">
|
class="px-2 py-1 rounded hover:bg-stone-200">
|
||||||
@{{ actor.preferred_username }}
|
@{{ actor.preferred_username }}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
{% if actor %}
|
{% if actor %}
|
||||||
<p class="mt-2"><strong>Username:</strong> @{{ actor.preferred_username }}</p>
|
<p class="mt-2"><strong>Username:</strong> @{{ actor.preferred_username }}</p>
|
||||||
<p class="mt-1">
|
<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">
|
class="text-blue-600 hover:underline">
|
||||||
View profile
|
View profile
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user