From 29f48f58b322d801b6dd08e74a0206f9b049b8a5 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Tue, 8 Oct 2024 07:47:43 +1300 Subject: [PATCH] accept alt text --- app/activitypub/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/activitypub/util.py b/app/activitypub/util.py index 820c652b..907e35df 100644 --- a/app/activitypub/util.py +++ b/app/activitypub/util.py @@ -1699,8 +1699,8 @@ def create_post(activity_log: ActivityPubLog, community: Community, request_json image = File(source_url=request_json['object']['image']['url']) else: image = File(source_url=post.url) - if alt_text: - image.alt_text = alt_text + if alt_text: + image.alt_text = alt_text db.session.add(image) post.image = image elif is_video_url(post.url): # youtube is detected later