diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-20 12:56:42 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-20 12:56:42 +0100 |
commit | 818f37f646fb536047f4408390007eef000a33a3 (patch) | |
tree | 5d44d03c045cf23f32bd6757d8592b7bbd3b70f8 /src/lua/lua_html.cxx | |
parent | 24214a2fa4485f08476d69c3b48619dd4ac309ac (diff) | |
download | rspamd-818f37f646fb536047f4408390007eef000a33a3.tar.gz rspamd-818f37f646fb536047f4408390007eef000a33a3.zip |
[Rework] Redesign html blocks propagation logic
Diffstat (limited to 'src/lua/lua_html.cxx')
-rw-r--r-- | src/lua/lua_html.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_html.cxx b/src/lua/lua_html.cxx index 370f2230e..250203d6e 100644 --- a/src/lua/lua_html.cxx +++ b/src/lua/lua_html.cxx @@ -348,7 +348,7 @@ lua_html_push_block (lua_State *L, const struct rspamd::html::html_block *bl) lua_createtable (L, 0, 6); - if (bl->mask & rspamd::html::html_block::fg_color_mask) { + if (bl->fg_color_mask) { lua_pushstring (L, "color"); lua_createtable (L, 4, 0); lua_pushinteger (L, bl->fg_color.r); @@ -361,7 +361,7 @@ lua_html_push_block (lua_State *L, const struct rspamd::html::html_block *bl) lua_rawseti (L, -2, 4); lua_settable (L, -3); } - if (bl->mask & rspamd::html::html_block::bg_color_mask) { + if (bl->bg_color_mask) { lua_pushstring (L, "bgcolor"); lua_createtable (L, 4, 0); lua_pushinteger (L, bl->bg_color.r); @@ -375,7 +375,7 @@ lua_html_push_block (lua_State *L, const struct rspamd::html::html_block *bl) lua_settable (L, -3); } - if (bl->mask & rspamd::html::html_block::font_size_mask) { + if (bl->font_mask) { lua_pushstring(L, "font_size"); lua_pushinteger(L, bl->font_size); lua_settable(L, -3); |