Rename coop to blog throughout codebase
- coop_url() → blog_url(), AUTH_APP default → "blog" - Session cookie: coop_session → blog_session - Config keys: coop_root/coop_title → market_root/market_title - All Jinja templates: coop_url → blog_url, coop_title → market_title - Template blocks: coop-child-header → blog-child-header Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -21,8 +21,8 @@ def app_url(app_name: str, path: str = "/") -> str:
|
||||
return base + path
|
||||
|
||||
|
||||
def coop_url(path: str = "/") -> str:
|
||||
return app_url("coop", path)
|
||||
def blog_url(path: str = "/") -> str:
|
||||
return app_url("blog", path)
|
||||
|
||||
|
||||
def market_url(path: str = "/") -> str:
|
||||
@@ -66,9 +66,9 @@ def market_product_url(product_slug: str, suffix: str = "", market_place=None) -
|
||||
|
||||
|
||||
def login_url(next_url: str = "") -> str:
|
||||
# Auth lives in blog (coop) for now. Set AUTH_APP=federation to switch.
|
||||
# Auth lives in blog for now. Set AUTH_APP=federation to switch.
|
||||
from quart import session as qsession
|
||||
auth_app = os.getenv("AUTH_APP", "coop")
|
||||
auth_app = os.getenv("AUTH_APP", "blog")
|
||||
base = app_url(auth_app, "/auth/login/")
|
||||
params: list[str] = []
|
||||
if next_url:
|
||||
|
||||
Reference in New Issue
Block a user