Fix post links
This commit is contained in:
parent
a4883480ae
commit
333285bb79
|
@ -141,7 +141,7 @@ def main():
|
||||||
# Body
|
# Body
|
||||||
parts = []
|
parts = []
|
||||||
if not post_data.get("is_self"):
|
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"):
|
if preview := post_data.get("preview"):
|
||||||
try:
|
try:
|
||||||
previews = preview["images"][0]["resolutions"]
|
previews = preview["images"][0]["resolutions"]
|
||||||
|
|
Loading…
Reference in New Issue