Stop logging message contents in the database for privacy reasons. Please remove the 'content' column in the 'messages' table:

This commit is contained in:
Ske
2018-09-16 13:59:37 +02:00
parent cae394b4e8
commit ca662bd502
3 changed files with 18 additions and 9 deletions

View File

@@ -175,8 +175,7 @@ class Proxy:
# Report webhook stats to Influx
await self.stats.report_webhook(time.perf_counter() - time_before, True)
await db.add_message(conn, message["id"], message["channel_id"], member.id, original_message.author.id,
text or "")
await db.add_message(conn, message["id"], message["channel_id"], member.id, original_message.author.id)
try:
await self.client.delete_message(original_message)