We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc29d0b commit c26ca29Copy full SHA for c26ca29
home/zulip_helpers.py
@@ -46,7 +46,7 @@ def announce_posts(posts, debug=True):
46
path = reverse("view_post", kwargs={"slug": post.slug})
47
url = "{}/{}".format(settings.ROOT_URL.rstrip("/"), path.lstrip("/"))
48
content = ANNOUNCE_MESSAGE.format(author, title, url)
49
- if post.content
+ if post.content:
50
summary = post.content if len(post.content) <= 480 else post.content[:477] + "..."
51
content = content + QUOTE.format(summary)
52
send_message_zulip(to, subject, content, type_="stream")
0 commit comments