binary-upload-boom icon indicating copy to clipboard operation
binary-upload-boom copied to clipboard

add comment functionality (+ like/delete)

Open nicoledicochea opened this issue 2 years ago • 0 comments

  • Created a comment controller and model.
  • CommentSchema contains the following properties: comment, likes, post, user, userId, createdAt.
  • Added a form in post.ejs to submit a comment.
  • Comments are displayed along with the commenter's username.
  • Added functionality for liking comments.
  • Conditional in post.ejs determines that if the logged-in user matches the user that made the comment, the trash can icon will appear and the comment can be deleted.

nicoledicochea avatar Jan 29 '23 01:01 nicoledicochea