Node.js based forum software built for the modern web
feat: add action:post.updatePostVoteCount
Barış Soner Uşaklıb25b51bd977f
diff --git a/src/posts/votes.js b/src/posts/votes.jsindex ed3d1f58c6..92ed268d4c 100644--- a/src/posts/votes.js+++ b/src/posts/votes.js@@ -225,6 +225,7 @@ module.exports = function (Posts) {downvotes: postData.downvotes,}),]);+ plugins.fireHook('action:post.updatePostVoteCount', { post: postData });};async function updateTopicVoteCount(postData) {