From 7f7c5a3b04caa9d2a664877a37995bfd247fdb24 Mon Sep 17 00:00:00 2001 From: moanos Date: Sun, 20 Jul 2025 08:50:00 +0200 Subject: [PATCH] fix: post all available pictures --- src/fellchensammlung/tools/fedi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fellchensammlung/tools/fedi.py b/src/fellchensammlung/tools/fedi.py index a408f53..dfccdcd 100644 --- a/src/fellchensammlung/tools/fedi.py +++ b/src/fellchensammlung/tools/fedi.py @@ -73,7 +73,7 @@ class FediClient: media_ids = [] for image in images: # Upload the image and get the media ID - media_ids = self.upload_media(f"{settings.MEDIA_ROOT}/{image.image}", image.alt_text) + media_ids.append(self.upload_media(f"{settings.MEDIA_ROOT}/{image.image}", image.alt_text)) # Post the status with the uploaded image's media ID return self.post_status(status, media_ids=media_ids)