aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_html.cxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-14 13:42:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-14 14:07:29 +0100
commit26676f385c051affd123a40c5e354a52e64e8fc2 (patch)
treee1f5fc428fe956674aa5b6012a6b636cc89a48dd /src/lua/lua_html.cxx
parentab387ef08fe91ecc8faa2051e49727a51eb655bb (diff)
downloadrspamd-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.cxx3
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);
}