mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
alt text debug
This commit is contained in:
parent
2fbe9a011e
commit
586aeb5c08
1 changed files with 0 additions and 1 deletions
|
@ -215,7 +215,6 @@ def save_post(form, post: Post):
|
||||||
post.body_html = markdown_to_html(post.body)
|
post.body_html = markdown_to_html(post.body)
|
||||||
post.type = POST_TYPE_IMAGE
|
post.type = POST_TYPE_IMAGE
|
||||||
alt_text = form.image_alt_text.data if form.image_alt_text.data else form.image_title.data
|
alt_text = form.image_alt_text.data if form.image_alt_text.data else form.image_title.data
|
||||||
post.image.alt_text = alt_text
|
|
||||||
uploaded_file = request.files['image_file']
|
uploaded_file = request.files['image_file']
|
||||||
if uploaded_file and uploaded_file.filename != '':
|
if uploaded_file and uploaded_file.filename != '':
|
||||||
if post.image_id:
|
if post.image_id:
|
||||||
|
|
Loading…
Add table
Reference in a new issue