Lacrima132 / Agile-Web-Dev-Project

Forum Project for Agile Web Dev
1 stars 0 forks source link

save the number of posts, likes, dislikes on each post #10

Closed trebbyyy closed 4 months ago

trebbyyy commented 4 months ago

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)

Lacrima132 commented 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.

trebbyyy commented 4 months ago

Done! AJAX done, databases updated and now when you reload the pages it remembers whether you've liked it or not