Skip to content

Commit

Permalink
fixup! template filter to only urlize if not in bad links list
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Jun 17, 2024
1 parent 8f3b960 commit 21cd391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crowdsourcer/templatetags/neighbourhood_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'<span class="text-danger">{text}</a>')
else:
return mark_safe(urlizer_external(text))

0 comments on commit 21cd391

Please sign in to comment.