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