~tsileo/microblog.pub

1227dd523617c83d19e9f01ec09bb0129cdb9054 — Thomas Sileo 8 months ago 6a40e7d
Tweak the template filter for inline imgs
1 files changed, 1 insertions(+), 1 deletions(-)

M utils/template_filters.py
M utils/template_filters.py => utils/template_filters.py +1 -1
@@ 346,7 346,7 @@ def get_attachment_url(url, size):

@filters.app_template_filter()
def update_inline_imgs(content):
    soup = BeautifulSoup(content)
    soup = BeautifulSoup(content, "html5lib")
    imgs = soup.find_all("img")
    if not imgs:
        return content