Describe the Bug
In app/routers/dashboard.py, the express_interest endpoint tries to read the current user's name from current_user.get("name").
However, the get_current_user dependency only extracts user_id and role from the JWT token.
This results in the name resolving to None and notifications displaying "A user (student) is interested in your collaboration..." instead of the actual name.
Expected Behavior
The user name should be fetched from the database before generating notification nodes.
Describe the Bug
In
app/routers/dashboard.py, theexpress_interestendpoint tries to read the current user's name fromcurrent_user.get("name").However, the
get_current_userdependency only extractsuser_idandrolefrom the JWT token.This results in the name resolving to
Noneand notifications displaying"A user (student) is interested in your collaboration..."instead of the actual name.Expected Behavior
The user name should be fetched from the database before generating notification nodes.