Fix reddit display

This commit is contained in:
Zeva Rose 2023-01-14 06:31:45 +00:00
parent b6031af760
commit 335a4b7db0

View file

@ -57,7 +57,7 @@ class RedditCog(Extension):
Args:
post: Post to build embeds
"""
url = "https://reddit.com" + post.permalink
url = f"https://redd.it/{post.id}"
await post.author.load()
author_url = f"https://reddit.com/u/{post.author.name}"
author_icon = post.author.icon_img