bounswe / bounswe2022group4

6 stars 3 forks source link

Frontend: Delete Comment Backend Connection #412

Closed umutdenizsenerr closed 1 year ago

umutdenizsenerr commented 1 year ago

I have created Comment structure before with delete button. Now i have connected it to backend, in order to make delete button functional. Also, user can only delete its own posts.

BeratDamar commented 1 year ago

Delete function works fine. After delete a comment, page is re-rendered and users can view non-deleted comments. I also checked whether a user is able to delete comment of another users. As we desired, he/she can not delete comment of another users. I also checked ../api file and API calls. All of them are fine. Thanks for your contribution.