Allow svg image posting

main
Bob Mottram 2022-05-26 18:04:57 +01:00
parent 1d0ccdecdb
commit 30d3a7be36
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ def html_new_post(css_cache: {}, media_instance: bool, translate: {},
' <input type="file" id="attachpic" name="attachpic"'
formats_string = get_media_formats()
# remove svg as a permitted format
formats_string = formats_string.replace(', .svg', '').replace('.svg, ', '')
# formats_string = formats_string.replace(', .svg', '').replace('.svg, ', '')
new_post_image_section += \
' accept="' + formats_string + '">\n'
new_post_image_section += \