fix lang notification

This commit is contained in:
Yansong Zhang
2026-03-09 17:44:10 +08:00
parent 9e7aeb36ca
commit 65b2e8c525

View File

@ -48,7 +48,7 @@ class NotificationApi(Resource):
if not result.get("shouldShow"):
return {"should_show": False, "notifications": []}, 200
lang = current_user.interface_language
lang = current_user.interface_language or _FALLBACK_LANG
notifications = []
for notification in result.get("notifications") or []: