()
| 315 | |
| 316 | // Bind starring action. |
| 317 | const onStarClicked = function () { |
| 318 | const globalPostRef = ref(database, '/posts/' + postId); |
| 319 | const userPostRef = ref(database, '/user-posts/' + authorId + '/' + postId); |
| 320 | toggleStar(globalPostRef, uid); |
| 321 | toggleStar(userPostRef, uid); |
| 322 | }; |
| 323 | unStar.onclick = onStarClicked; |
| 324 | star.onclick = onStarClicked; |
| 325 |
nothing calls this directly
no test coverage detected