Moving right along with one of the final features of our application: Persistence of Likes for Posts. This is relatively simple to do since we have our FeedItem model defined nicely in our application. One simple modification we'll perform is to update FeedItem with a property called hasLiked using a type boolean. This property helps us easily keep track of whether the current user has liked a post and we'll send this back to the iOS application as well.

Comments (4)
Vinney
3 years ago
Vinney
3 years ago
gerkov77
2 years ago
Thanks Brian, Fantastic episode, I am getting confident to build my server apps in the future :) Greg
JMan
2 years ago
Hey Brian, Trying to figure out how to allow the user to like/ show likes on the website. It works perfectly in the home feed but in the account/ public profile it's a different story...since they are not using the feed item object of course. You didn't do a video about likes in the website (or at least I don't think you did) but I did see a like button in the finished version of the application, how did you solve this problem? Thanks in advance - Jack
JMan
2 years ago
I've looked into this and if you don't have a solution for it then please let me know, I don't want to have to wait and sit here for false hope ? Thanks in advance (again) - Jack
JMan
2 years ago
NVM, figured it out ? ? ?
HELP & SUPPORT