Skip to content
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

Open
Ashu0216 opened this issue May 22, 2024 · 4 comments
Open

[FEATURE] Implement Post Like #339

Ashu0216 opened this issue May 22, 2024 · 4 comments
Labels
feature Adding new feature on top of the existing code

Comments

@Ashu0216
Copy link

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:
image

@Ashu0216 Ashu0216 added the feature Adding new feature on top of the existing code label May 22, 2024
@Ashu0216 Ashu0216 changed the title Implement Post Like [FEATURE] Implement Post Like May 22, 2024
@nishant0708
Copy link

Hey Can you Assign me this issue under gssoc 24

@VijayaragavanS1999
Copy link

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.

@vamsidhar-914
Copy link
Contributor

vamsidhar-914 commented Jun 1, 2024

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

@shivansh84ya
Copy link
Contributor

Hi @Ashu0216 ,
I would like to work on this issue. Could you please assign it to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding new feature on top of the existing code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants