description as author was a bad idea

This commit is contained in:
Corban-Lee Jones 2024-06-13 08:41:05 +01:00
parent f9bf15758a
commit 59062b68a1

View File

@ -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