Node.js based forum software built for the modern web
feat: #8864, add action:events.log
Barış Soner Uşaklı9c5c32d4a5de
diff --git a/src/events.js b/src/events.jsindex 2217ca3b51..7630dfcfa7 100644--- a/src/events.js+++ b/src/events.js@@ -8,6 +8,7 @@ const db = require('./database');const batch = require('./batch');const user = require('./user');const utils = require('./utils');+const plugins = require('./plugins');const events = module.exports;@@ -78,6 +79,7 @@ events.log = async function (data) {], data.timestamp, eid),db.setObject('event:' + eid, data),]);+ plugins.fireHook('action:events.log', { data: data });};events.getEvents = async function (filter, start, stop, from, to) {