diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-06-14 13:42:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-06-14 14:07:29 +0100 |
commit | 26676f385c051affd123a40c5e354a52e64e8fc2 (patch) | |
tree | e1f5fc428fe956674aa5b6012a6b636cc89a48dd /src/lua/lua_html.cxx | |
parent | ab387ef08fe91ecc8faa2051e49727a51eb655bb (diff) | |
download | rspamd-26676f385c051affd123a40c5e354a52e64e8fc2.tar.gz rspamd-26676f385c051affd123a40c5e354a52e64e8fc2.zip |
[Project] Html/Css: Implement visibility rules for a block
Diffstat (limited to 'src/lua/lua_html.cxx')
-rw-r--r-- | src/lua/lua_html.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lua/lua_html.cxx b/src/lua/lua_html.cxx index 3b9b7a7de..0972fde98 100644 --- a/src/lua/lua_html.cxx +++ b/src/lua/lua_html.cxx @@ -381,9 +381,8 @@ lua_html_push_block (lua_State *L, const struct rspamd::html::html_block *bl) lua_settable(L, -3); } - /* TODO: fix */ lua_pushstring(L, "visible"); - lua_pushboolean(L, true); + lua_pushboolean(L, (bl->mask & rspamd::html::html_block::invisible_flag) == 0); lua_settable(L, -3); } |