remove bleach... it's a shame to make unreadable html docs

This commit is contained in:
manetta 2022-02-18 16:20:32 +01:00
parent 2d0391c5e5
commit 9b49dbea79

View File

@ -132,7 +132,7 @@ class Logbot(Bot):
new_key = str(int(keys[-1]) + 1) new_key = str(int(keys[-1]) + 1)
if media_post: if media_post:
self.db[message.room]["messages"][new_key] = {} self.db[message.room]["messages"][new_key] = {}
self.db[message.room]["messages"][new_key]['post'] = bleach.clean(media_post) self.db[message.room]["messages"][new_key]['post'] = media_post
self.db[message.room]["messages"][new_key]['date'] = date self.db[message.room]["messages"][new_key]['date'] = date
self.db[message.room]["messages"][new_key]['media'] = {} self.db[message.room]["messages"][new_key]['media'] = {}
self.db[message.room]["messages"][new_key]['media']['type'] = media_type self.db[message.room]["messages"][new_key]['media']['type'] = media_type
@ -142,7 +142,7 @@ class Logbot(Bot):
post = message.content.replace("@add ", "") post = message.content.replace("@add ", "")
post = self._href_wrap(post) post = self._href_wrap(post)
self.db[message.room]["messages"][new_key] = {} self.db[message.room]["messages"][new_key] = {}
self.db[message.room]["messages"][new_key]['post'] = bleach.clean(post) self.db[message.room]["messages"][new_key]['post'] = post
self.db[message.room]["messages"][new_key]['date'] = date self.db[message.room]["messages"][new_key]['date'] = date
self.db._dumps() self.db._dumps()