mirror of
https://github.com/maubot/rss.git
synced 2025-04-20 07:15:56 -04:00
Fix support for RSS feeds without content attribute
This commit is contained in:
parent
4dfa74a63b
commit
e0a992396e
@ -296,7 +296,9 @@ class RSSBot(Plugin):
|
||||
title=getattr(entry, "title", ""),
|
||||
summary=getattr(entry, "description", "").strip(),
|
||||
link=getattr(entry, "link", ""),
|
||||
content=entry["content"][0]["value"].strip(),
|
||||
content=entry["content"][0]["value"].strip() if hasattr(entry, "content")
|
||||
and len(entry["content"]) > 0
|
||||
and hasattr(entry["content"][0], "value") else "",
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
|
Loading…
x
Reference in New Issue
Block a user