From 21cd391722961d39289b19faaade0ae947d48570 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Mon, 17 Jun 2024 14:33:23 +0100 Subject: [PATCH] fixup! template filter to only urlize if not in bad links list --- crowdsourcer/templatetags/neighbourhood_filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crowdsourcer/templatetags/neighbourhood_filters.py b/crowdsourcer/templatetags/neighbourhood_filters.py index d1d9b35..e645bf6 100644 --- a/crowdsourcer/templatetags/neighbourhood_filters.py +++ b/crowdsourcer/templatetags/neighbourhood_filters.py @@ -32,6 +32,6 @@ def urlize_external(text, autoescape=True): @stringfilter def check_if_broken(text, autoescape=True): if check_if_url_bad(text): - return text + return mark_safe(f'{text}') else: return mark_safe(urlizer_external(text))