diff --git a/src/snek/service/channel_message.py b/src/snek/service/channel_message.py index a8dbc55..9c66af7 100644 --- a/src/snek/service/channel_message.py +++ b/src/snek/service/channel_message.py @@ -71,7 +71,7 @@ class ChannelMessageService(BaseService): ) try: template = self.app.jinja2_env.get_template("message.html") - model["html"] = whitelist_attributes(template.render(**context)) + model["html"] = template.render(**context) except Exception as ex: print(ex, flush=True) @@ -127,7 +127,7 @@ class ChannelMessageService(BaseService): } ) template = self.app.jinja2_env.get_template("message.html") - model["html"] = whitelist_attributes(template.render(**context)) + model["html"] = template.render(**context) return await super().save(model) async def offset(self, channel_uid, page=0, timestamp=None, page_size=30):