summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_html.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_html.cxx')
-rw-r--r--src/lua/lua_html.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lua/lua_html.cxx b/src/lua/lua_html.cxx
index 0972fde98..376df9fbb 100644
--- a/src/lua/lua_html.cxx
+++ b/src/lua/lua_html.cxx
@@ -382,7 +382,11 @@ lua_html_push_block (lua_State *L, const struct rspamd::html::html_block *bl)
}
lua_pushstring(L, "visible");
- lua_pushboolean(L, (bl->mask & rspamd::html::html_block::invisible_flag) == 0);
+ lua_pushboolean(L, bl->is_visible());
+ lua_settable(L, -3);
+
+ lua_pushstring(L, "transparent");
+ lua_pushboolean(L, bl->is_transparent());
lua_settable(L, -3);
}