Skip to content

Commit

Permalink
perf: 优化命令禁止发送消息时,slack消息会包含html标签内容
Browse files Browse the repository at this point in the history
  • Loading branch information
O-Jiangweidong authored and BaiJiangJie committed Dec 19, 2023
1 parent 1afad40 commit 83b91cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/common/sdk/im/slack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def list(self, body, ordered=True):
lines[i] = prefix + line[4:-5]
return '\n'.join(lines)

def block_code(self, code, lang=None):
return f'`{code}`'

def link(self, link, title, content):
if title or content:
label = str(title or content).strip()
Expand Down

0 comments on commit 83b91cb

Please sign in to comment.