Closed trebbyyy closed 4 months ago
The toggle function for likes and dislikes is now working for each individual post. All that's left is updating the database and remembering whether a post has been liked or not, and showing this when the DOM is loaded.
Done! AJAX done, databases updated and now when you reload the pages it remembers whether you've liked it or not
just find a way to increment the number of likes, dislikes on each post, have it reflected on the database, and when you unclick the like or unlike button on a post, the database reflects this change, AND the button looks different too (liked vs unliked have different appearance on it)