aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2024-01-28 11:25:10 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2024-01-28 11:37:31 +0300
commitc8452b009d07a055208e92602c43bcf2143acde2 (patch)
tree29a5bcc927f73d02f9a1634cdfd6c46ddba8f8b0 /src/plugins/lua
parentabc813e0698cc604e7651beebce93266a8e719a6 (diff)
downloadrspamd-c8452b009d07a055208e92602c43bcf2143acde2.tar.gz
rspamd-c8452b009d07a055208e92602c43bcf2143acde2.zip
[Rework] Breaking: Do not report module as action
in the /history response since we have the `passthrough_module` key for that purpose. While that might be handy in some situations, mixing actions and module names is confusing in general.
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/history_redis.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/lua/history_redis.lua b/src/plugins/lua/history_redis.lua
index d0aa5aec7..a5f4ec854 100644
--- a/src/plugins/lua/history_redis.lua
+++ b/src/plugins/lua/history_redis.lua
@@ -47,7 +47,6 @@ local lua_redis = require "lua_redis"
local fun = require "fun"
local ucl = require "ucl"
local ts = (require "tableshape").types
-local lua_verdict = require "lua_verdict"
local E = {}
local N = "history_redis"
local hostname = rspamd_util.get_hostname()
@@ -115,7 +114,7 @@ local function normalise_results(tbl, task)
tbl.rmilter = nil
tbl.messages = nil
tbl.urls = nil
- tbl.action = lua_verdict.adjust_passthrough_action(task)
+ tbl.action = task:get_metric_action()
local seconds = task:get_timeval()['tv_sec']
tbl.unix_time = seconds