diff options
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_html.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lua/lua_html.c b/src/lua/lua_html.c index 1766d8f2f..b680dae4e 100644 --- a/src/lua/lua_html.c +++ b/src/lua/lua_html.c @@ -318,7 +318,7 @@ lua_html_push_block (lua_State *L, struct html_block *bl) struct rspamd_lua_text *t; struct html_tag **ptag; - lua_createtable (L, 0, 4); + lua_createtable (L, 0, 5); if (bl->tag) { lua_pushstring (L, "tag"); @@ -359,6 +359,10 @@ lua_html_push_block (lua_State *L, struct html_block *bl) t->flags = 0; lua_settable (L, -3); } + + lua_pushstring (L, "visible"); + lua_pushboolean (L, bl->visible); + lua_settable (L, -3); } static gint |