Fix error on titles 256 characters, closes #147
This commit is contained in:
parent
f0c2e51692
commit
51ec866647
1 changed files with 3 additions and 1 deletions
|
@ -54,7 +54,9 @@ class RedditCog(Extension):
|
||||||
author_url = f"https://reddit.com/u/{post.author.name}"
|
author_url = f"https://reddit.com/u/{post.author.name}"
|
||||||
author_icon = post.author.icon_img
|
author_icon = post.author.icon_img
|
||||||
images = []
|
images = []
|
||||||
title = f"{post.title}"
|
title = post.title
|
||||||
|
if len(title) > 256:
|
||||||
|
title = title[253] + "..."
|
||||||
fields = []
|
fields = []
|
||||||
content = ""
|
content = ""
|
||||||
og_post = None
|
og_post = None
|
||||||
|
|
Loading…
Add table
Reference in a new issue