Tweak formatting of blocks
@@ -3375,7 +3375,7 @@ def linkify_text(message, team, only_users=False):
def unfurl_blocks(message_json):
- block_text = []
+ block_text = [""]
for block in message_json["blocks"]:
try:
if block["type"] == "section":
@@ -3384,9 +3384,9 @@ def unfurl_blocks(message_json):
elif block["type"] == "actions":
block_text.append(" | ".join(i["text"]["text"] for i in block["elements"]))
elif block["type"] == "call":
- block_text.append(". Join via " + block["call"]["v1"]["join_url"])
+ block_text.append("Join via " + block["call"]["v1"]["join_url"])
elif block["type"] == "divider":
- block_text.append("\n")
+ block_text.append("---")
elif block["type"] == "context":
block_text.append(" | ".join(i["text"] for i in block["elements"]))
elif block["type"] == "rich_text":
