diff --git a/src/instagram_to_discord.py b/src/instagram_to_discord.py index 3e21fc2..b6d753d 100644 --- a/src/instagram_to_discord.py +++ b/src/instagram_to_discord.py @@ -32,7 +32,7 @@ def send_to_discord(post_url, image_url, author_name, author_icon_url, post_desc "timestamp": post_timestamp.strftime("%Y-%m-%dT%H:%M:%S"), "author": { "name": author_name, - "url": f"https://www.instagram.com/{author_name}", + "url": f"https://www.instagram.com/{author_name}/", "icon_url": author_icon_url }, "footer": { @@ -53,7 +53,7 @@ def check_for_new_posts(): """Check for new Instagram posts and send them to Discord.""" profile = instaloader.Profile.from_username(L.context, TARGET_INSTAGRAM_PROFILE) for post in profile.get_posts(): - instagram_post_url = "https://instagram.com/p/" + post.shortcode + instagram_post_url = "https://instagram.com/p/" + post.shortcode + "/" image_url = post.url author_name = profile.username author_icon_url = profile.profile_pic_url