πͺ Yes!! Got basic comment notification system working on local, without annoying notifications to self when user comments on own post
Integrated API endpoints into frontend by making the form submission send 2 `POST` requests, one to create the comment and the other to create the notification. No lifecycle hooks/methods needed, just a plain ol' POST request! Didn't know why I couldn't see this before and went down the rabbit hole of over-thinking and complexity...
Managed to add an if statement to prevent user from sending comment notifications to self:
`if (this.post.author.username !== this.$auth.user.username) { ... }`
Next up: how to reduce notif count on click event of each notification.
Managed to add an if statement to prevent user from sending comment notifications to self:
`if (this.post.author.username !== this.$auth.user.username) { ... }`
Next up: how to reduce notif count on click event of each notification.