Store that, woops

This commit is contained in:
decentral1se 2021-06-03 16:45:42 +02:00
parent db5534f437
commit f234bafb5c
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A

View File

@ -13,7 +13,7 @@ def _href_wrap(post):
"""Wrap links in a tags as a Jinja template filter.""" """Wrap links in a tags as a Jinja template filter."""
for url in re.findall(r"http\S+", post): for url in re.findall(r"http\S+", post):
url_with_href = f"<a href='{url}'>{url}</a>" url_with_href = f"<a href='{url}'>{url}</a>"
post.replace(url, url_with_href) post = post.replace(url, url_with_href)
return post return post