Fix post links

This commit is contained in:
Tim Van Baak 2023-06-24 06:52:18 -07:00
parent a4883480ae
commit 333285bb79
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ def main():
# Body
parts = []
if not post_data.get("is_self"):
parts.append(f'<i>link:</i> <a href="{post_data.get("url", "")}>{post_data.get("url", "(no url)")}')
parts.append(f'<i>link:</i> <a href="{post_data.get("url", "")}">{post_data.get("url", "(no url)")}</a>')
if preview := post_data.get("preview"):
try:
previews = preview["images"][0]["resolutions"]