From 0369b3f8bce7c208f2892c148b9fa109db0b3c97 Mon Sep 17 00:00:00 2001 From: rra Date: Wed, 1 Dec 2021 17:35:01 +0100 Subject: [PATCH] add lazyloading parameter to only load material which is close to the viewport --- LogBot/logbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index a56b788..453d9f1 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -97,9 +97,9 @@ class Logbot(Bot): # define media_post media_path = os.path.join(media_type, filename) if message.url.lower().endswith(self.IMAGE_TYPES): - media_post = f'' + media_post = f'' elif message.url.lower().endswith(self.FILE_TYPES): - media_post = f'' + media_post = f'' elif message.url.lower().endswith(self.AUDIO_TYPES): media_post = f'' elif message.url.lower().endswith(self.VIDEO_TYPES):