Skip to content

Commit 0fe529e

Browse files
committed
Fixed bug in notification for views
1 parent 0a1fdcc commit 0fe529e

File tree

1 file changed

+2
-2
lines changed
  • backend/PyMatcha/routes/api/profile

1 file changed

+2
-2
lines changed

backend/PyMatcha/routes/api/profile/view.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def view_profile(uid):
4848

4949
Notification.create(
5050
user_id=u.id,
51-
content=f"{u.first_name} just viewed your profile! Go check their profile out!",
51+
content=f"{current_user.first_name} just viewed your profile! Go check their profile out!",
5252
type="view",
53-
link_to=f"users/{u.id}",
53+
link_to=f"users/{current_user.id}",
5454
)
5555

5656
return SuccessOutput("profile", user_dict)

0 commit comments

Comments
 (0)