forked from retoor/devplacepy
feat: add authenticated my-profile endpoint and clean breadcrumb markdown in SEO context
- Add GET /profile route returning own profile page with tab support, backed by new my_profile_page handler in profile/index.py and documented in docs_api.py - Introduce _clean_breadcrumbs helper in seo.py that strips markdown from breadcrumb names before passing to schema generation - Skip data-confirm modal for elements with data-auto-submit attribute in ModalManager.js - Guard PushManager subscription against missing userUid and capture it from document body dataset - Switch profile bio template from render_title to render_content and use div instead of span for proper block rendering
This commit is contained in:
@@ -684,6 +684,13 @@ ACTIONS: tuple[Action, ...] = (
|
||||
summary="Search for users by name",
|
||||
params=(query("q", "Search query."),),
|
||||
),
|
||||
Action(
|
||||
name="my_profile",
|
||||
method="GET",
|
||||
path="/profile",
|
||||
summary="View the current user's own profile",
|
||||
params=(query("tab", "Profile tab."),),
|
||||
),
|
||||
Action(
|
||||
name="view_profile",
|
||||
method="GET",
|
||||
|
||||
Reference in New Issue
Block a user