diff --git a/slack-message.c b/slack-message.c index bbd6501..de49fa6 100644 --- a/slack-message.c +++ b/slack-message.c @@ -277,8 +277,13 @@ static void slack_attachment_to_html(GString *html, SlackAccount *sa, json_value if (title) { g_string_append(html, brtag->str); g_string_append(html, ""); - link_html(html, title_link, title); + if (title_link) { + link_html(html, title_link, title); + } else { + slack_message_to_html(html, sa, title, NULL, attachment_prefix->str); + } g_string_append(html, ""); + } // main text