clubi
clubi copied to clipboard
Return just the number of likes
- [ ] Return posts' and comments' likes as a number, not an array of likes
- [ ] Make an endpoint to fetch users who liked a post
- [ ] On the frontend - fetch only the number of likes (for posts and comments), DON'T fetch the users who liked, because there's no view to do that yet
Hello, I would like to try to working on this issue. Could you assign it to me please? Thank you
Hello, I would like to try to working on this issue. Could you assign it to me please? Thank you
Yes of course! 😊 Here You go
Don't be shy to reach out if You need any assistance at all!
OK thank you so much. :)
@macbookfilip Hi! how's the work on this issue going?
hallo it's look be fine thanks
hallo, i have question on you. Whoever can like these posts or just only logged user? But I think can be better with logged user. Do you want like and unlike or just like?
Looking at the web.php
file, You can clearly see that there is an auth guard on the path to the like controller
If You'd look into the like controller, then You would clearly see that the liking of a post/comment is handled already
So: only the logged in users can like posts/comments and the like logic is already handled
Have You used clubi? These questions seem like You've never even used the service You're trying to work on
The issue says that instead of the list of post's/comment's likes, You need to change the code to send just the number of likes
Then You'd need to create an endpoint that will return the list of like objects, so that the service doesn't lose the functionality if someone eventually wants to download the like info