-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Implement Post Like #339
Comments
Hey Can you Assign me this issue under gssoc 24 |
Can you assign me this feature. I have an idea to do this, have to add Like field in schema which is array of user _ids. whenever the user clicked the like, user have to pass their _id so that we can push to that array and vise versa for disliking. |
Hi. i know how to implement this.we can add like field in schema which has type Array default with no values.when user clicked on like button a like with userIds gets pushed to that array i can do this ETA: 1 day can you assign me this feature |
Hi @Ashu0216 , |
Description
Like feature can be implemented to allow users to like any post.
Use Case
A Like button will be added on the full page view of the post from wherein a user can choose to like a post. The total number of likes received can be displayed on respective post's cards.
Proposed Solution
The solution includes both backend and frontend tasks.
Backend : Required changes will have to be made to the schema for additional 'Like' fields. Functions need to be implemented to add like and remove a like with edge case handling
Frontend: Like count will be shown on each post's card. Will use react hooks to perform the action of like.
Additional Information
No response
Attachments
Here is an idea of how it will look after feature completion:
The text was updated successfully, but these errors were encountered: