From 9b49dbea79e0eb5d285aded442fcce0996cab4d6 Mon Sep 17 00:00:00 2001 From: manetta Date: Fri, 18 Feb 2022 16:20:32 +0100 Subject: [PATCH] remove bleach... it's a shame to make unreadable html docs --- LogBot/logbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 7bc59a8..ae7510b 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -132,7 +132,7 @@ class Logbot(Bot): new_key = str(int(keys[-1]) + 1) if media_post: 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]['media'] = {} self.db[message.room]["messages"][new_key]['media']['type'] = media_type @@ -142,7 +142,7 @@ class Logbot(Bot): post = message.content.replace("@add ", "") post = self._href_wrap(post) 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._dumps()