From 82760cc950a2dfeee34e6e1f7660aacdb13b2805 Mon Sep 17 00:00:00 2001 From: manetta Date: Fri, 18 Feb 2022 16:48:12 +0100 Subject: [PATCH] replace media_post with media_path, now media_posts are dropped --- LogBot/logbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 4debd2d..f93d3bf 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -202,7 +202,7 @@ class Logbot(Bot): if message.url: media_type, media_mime, media_path, media_size = self._download(message) # TODO: Insert a list of accepted file types here. - if media_post: + if media_path: num = self._add_to_db(message, media_type=media_mime, media_path=media_path, media_size=media_size) media_type = media_type.replace("images", "image") # linguistic hack! if 'pdf' in message.url: