implement alt check
This commit is contained in:
parent
01ff701fef
commit
a8a704424a
|
@ -345,7 +345,10 @@ def process_multipart_post():
|
||||||
frontmatter["thumbnail"] = photo_url
|
frontmatter["thumbnail"] = photo_url
|
||||||
|
|
||||||
if "mp-photo-alt[]" in request.form:
|
if "mp-photo-alt[]" in request.form:
|
||||||
alt = request.form["mp-photo-alt[]"][i]
|
try:
|
||||||
|
alt = request.form["mp-photo-alt[]"][i]
|
||||||
|
except:
|
||||||
|
alt = ""
|
||||||
else:
|
else:
|
||||||
alt = ""
|
alt = ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue