description as author was a bad idea
This commit is contained in:
parent
f9bf15758a
commit
59062b68a1
@ -118,7 +118,7 @@ class Article:
|
||||
# Replace HTML with Markdown, and shorten text.
|
||||
title = shorten(markdownify(self.title, strip=["img", "a"]), 256)
|
||||
desc = shorten(markdownify(self.description, strip=["img"]), 4096)
|
||||
author = shorten(self.source.description, 256)
|
||||
author = shorten(self.source.name, 256)
|
||||
|
||||
# validate urls
|
||||
embed_url = self.url if validators.url(self.url) else None
|
||||
|
Loading…
x
Reference in New Issue
Block a user