scorelab / Codelabz

Codelabz
Apache License 2.0
143 stars 407 forks source link

[ Fix : Not Saving the USER_ID of the Commented User And No Proper Avatar For Comments ] #1198

Closed rohitPandey469 closed 7 months ago

rohitPandey469 commented 9 months ago

Describe the bug When the addComment action is called then the userId field is fixed with codelabzuser value instead it should have sent the current logged in user's id. So this will help in displaying commented users Avatar.

To Reproduce Steps to reproduce the behavior:

  1. Create a new tutorial and publish it.
  2. Add comments.
  3. See in firebase under cl_comments collection all comments have same user id's.

Expected behavior It should have stored the logged in user id.

Video

https://github.com/scorelab/Codelabz/assets/123815256/7fbe4396-3636-4c0e-ac95-8ff106b97743

See here in firebase all comments have same user id or it's fixed to codelabzuser even when commented through other id's.

Desktop (please complete the following information):

github-actions[bot] commented 8 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 7 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.