Update.
This commit is contained in:
parent
eb1284060a
commit
b27149b5ba
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user