From 3493c4fa76031417c167124c4ad6b0b250d8b669 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 18 Nov 2013 08:00:42 -0500 Subject: [PATCH] Fix rss-bot parsing of feeds that don't specify a post ID. (imported from commit 67fdb8b92b39fc14c81b87b7fa8089964c07be8b) --- integrations/rss/rss-bot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integrations/rss/rss-bot b/integrations/rss/rss-bot index 4a14595..8cae125 100755 --- a/integrations/rss/rss-bot +++ b/integrations/rss/rss-bot @@ -135,7 +135,8 @@ def strip_tags(html): def compute_entry_hash(entry): entry_time = entry.get("published", entry.get("updated")) - return hashlib.md5(entry.id + entry_time).hexdigest() + entry_id = entry.get("id", entry.get("link")) + return hashlib.md5(entry_id + entry_time).hexdigest() def send_zulip(entry, feed_name): content = "**[%s](%s)**\n%s\n%s" % (entry.title,