From b132a804b9c90b78891add967841bb961ac530cf Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Thu, 8 Aug 2013 17:17:37 -0400 Subject: [PATCH] rss-bot: Linkify RSS entry title. This makes our life a bit nicer if the message is super-long, because then even when it's "condensed", we still get a link to the actual article. (imported from commit 32e70d29cb702ce73f6cd0c04dbc58457cd2e6b5) --- demos/rss-bot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demos/rss-bot b/demos/rss-bot index 3814727..bcf404c 100755 --- a/demos/rss-bot +++ b/demos/rss-bot @@ -114,7 +114,8 @@ def compute_entry_hash(entry): return hashlib.md5(entry.id + entry_time).hexdigest() def send_zulip(entry, feed_name): - content = "**%s**\n%s\n%s" % (entry.title, + content = "**[%s](%s)**\n%s\n%s" % (entry.title, + entry.link, strip_tags(entry.summary), entry.link) message = {"type": "stream",