mirror of
https://github.com/maubot/rss.git
synced 2025-03-19 13:36:12 -04:00
Merge pull request #35 from AndrewKvalheim/entry-id-fallback
Stabilize entry IDs
This commit is contained in:
commit
b58202ebfb
@ -280,12 +280,12 @@ class RSSBot(Plugin):
|
||||
feed_id=feed_id,
|
||||
id=(
|
||||
getattr(entry, "id", None)
|
||||
or getattr(entry, "link", None)
|
||||
or hashlib.sha1(
|
||||
" ".join(
|
||||
[
|
||||
getattr(entry, "title", ""),
|
||||
getattr(entry, "description", ""),
|
||||
getattr(entry, "link", ""),
|
||||
]
|
||||
).encode("utf-8")
|
||||
).hexdigest()
|
||||
|
Loading…
x
Reference in New Issue
Block a user