Skip to content

Commit c26ca29

Browse files
committed
fix: syntax error
1 parent dc29d0b commit c26ca29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

home/zulip_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def announce_posts(posts, debug=True):
4646
path = reverse("view_post", kwargs={"slug": post.slug})
4747
url = "{}/{}".format(settings.ROOT_URL.rstrip("/"), path.lstrip("/"))
4848
content = ANNOUNCE_MESSAGE.format(author, title, url)
49-
if post.content
49+
if post.content:
5050
summary = post.content if len(post.content) <= 480 else post.content[:477] + "..."
5151
content = content + QUOTE.format(summary)
5252
send_message_zulip(to, subject, content, type_="stream")

0 commit comments

Comments
 (0)