fix: correct session uid access from self.request to request in app.py

The session uid retrieval in the Application class was incorrectly referencing
self.request.session instead of the local request variable, causing potential
AttributeError when accessing user static paths.
This commit is contained in:
2025-05-09 00:16:40 +00:00
parent 3880121bdf
commit a50127be58
+1 -1
View File
@@ -260,7 +260,7 @@ class Application(BaseApplication):
paths = [] paths = []
uid = self.request.session.get("uid") uid = request.session.get("uid")
if uid: if uid:
user_static_path = await self.services.user.get_static_path(uid) user_static_path = await self.services.user.get_static_path(uid)
if user_static_path: if user_static_path: