implement alt check

This commit is contained in:
James Ravenscroft 2024-12-02 14:44:53 +00:00
parent 01ff701fef
commit a8a704424a
1 changed files with 4 additions and 1 deletions

View File

@ -345,7 +345,10 @@ def process_multipart_post():
frontmatter["thumbnail"] = photo_url
if "mp-photo-alt[]" in request.form:
try:
alt = request.form["mp-photo-alt[]"][i]
except:
alt = ""
else:
alt = ""