accept alt text

This commit is contained in:
rimu 2024-10-08 07:47:43 +13:00
parent b8227713ea
commit 29f48f58b3

View file

@ -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