Skip to content

Commit

Permalink
fix links in slackbot output
Browse files Browse the repository at this point in the history
  • Loading branch information
krokicki committed Jul 26, 2024
1 parent d722e29 commit 8d75532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate_full_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ def generate_response(self, query):
if source.lower() == 'slack':
channel_id = extra_info['channel']
ts = extra_info['ts']
msg += f"* {source}: [{text}]({self.get_message_link(self.slack_client, channel_id, ts)})\n"
msg += f" {source}: <{text}|{self.get_message_link(self.slack_client, channel_id, ts)}>\n"
else:
msg += f"* {source}: [{extra_info['title']}]({extra_info['link']})\n"
msg += f" {source}: <{extra_info['title']}|{extra_info['link']}>\n"

return msg

Expand Down

0 comments on commit 8d75532

Please sign in to comment.