Browse Source

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

master
manetta 3 years ago
parent
commit
9b49dbea79
  1. 4
      LogBot/logbot.py

4
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()

Loading…
Cancel
Save