clubi icon indicating copy to clipboard operation
clubi copied to clipboard

Return just the number of likes

Open franeklubi opened this issue 3 years ago • 8 comments

  • [ ] 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

franeklubi avatar Sep 29 '20 18:09 franeklubi

Hello, I would like to try to working on this issue. Could you assign it to me please? Thank you

macbookfilip avatar Oct 09 '20 13:10 macbookfilip

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

franeklubi avatar Oct 09 '20 13:10 franeklubi

Don't be shy to reach out if You need any assistance at all!

franeklubi avatar Oct 09 '20 13:10 franeklubi

OK thank you so much. :)

macbookfilip avatar Oct 09 '20 13:10 macbookfilip

@macbookfilip Hi! how's the work on this issue going?

franeklubi avatar Oct 15 '20 10:10 franeklubi

hallo it's look be fine thanks

macbookfilip avatar Oct 15 '20 10:10 macbookfilip

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?

macbookfilip avatar Oct 29 '20 10:10 macbookfilip

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

franeklubi avatar Oct 29 '20 18:10 franeklubi