v2.5.1 — Chat-Verlauf bleibt beim Reload erhalten
- loadHistory() leert Chat nicht mehr (chat.innerHTML = '' entfernt) - Nur fehlende Nachrichten werden angehängt, bestehende bleiben - Cookie mit path=/ für konsistente Session über alle Routen - cowboy shot statt upper body (besserer Danbooru-Tag für NoobAI-XL) - very aesthetic, absurdres als Quality-Tags
This commit is contained in:
@@ -282,7 +282,7 @@ templates = Jinja2Templates(directory=str(BASE_DIR / "templates"))
|
||||
app.mount("/static", StaticFiles(directory=str(BASE_DIR / "static")), name="static")
|
||||
|
||||
def set_session_cookie(response, sid: str):
|
||||
response.set_cookie(SESSION_COOKIE_NAME, sid, max_age=SESSION_DURATION, httponly=False, samesite="lax")
|
||||
response.set_cookie(SESSION_COOKIE_NAME, sid, max_age=SESSION_DURATION, httponly=False, samesite="lax", path="/")
|
||||
|
||||
@app.get("/", response_class=HTMLResponse)
|
||||
async def index(request: Request, session_id: str = Cookie(None, alias=SESSION_COOKIE_NAME)):
|
||||
|
||||
Reference in New Issue
Block a user