From dc0e6c7dcb9712e985275f52b30f43063324fb18 Mon Sep 17 00:00:00 2001 From: zenfyr Date: Sun, 5 Apr 2026 16:01:36 +0700 Subject: [PATCH] fix: wrong alt text attribute in masto service --- mastodon/input.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mastodon/input.py b/mastodon/input.py index 456b0a3..c752eb7 100644 --- a/mastodon/input.py +++ b/mastodon/input.py @@ -1,4 +1,3 @@ -import asyncio import json import re from dataclasses import dataclass, field @@ -155,7 +154,7 @@ class MastodonInputService(MastodonService, InputService): blobs: list[Blob] = [] for media in status.get("media_attachments", []): self.log.info("Downloading '%s'...", media["url"]) - blob = download_blob(media["url"], media.get("alt"), client=self.http) + blob = download_blob(media["url"], media.get("description"), client=self.http) if not blob.is_ok(): self.log.error( "Skipping '%s': failed to download attachment. %s", @@ -268,5 +267,5 @@ class MastodonInputService(MastodonService, InputService): self.log.warning("Connection timeout: '%s'", e) except Exception as e: self.log.error("Unexpected error: '%s'", e, exc_info=True) - + self.log.info("Reconnecting to '%s'...", self.streaming_url) -- 2.51.2