forked from retoor/snek
Update.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user