Browse Source

Store that, woops

master
decentral1se 4 years ago
parent
commit
f234bafb5c
No known key found for this signature in database GPG Key ID: 92DAD76BD9567B8A
  1. 2
      LogBot/logbot.py

2
LogBot/logbot.py

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

Loading…
Cancel
Save