lunarflu HF staff commited on
Commit
6fca786
·
verified ·
1 Parent(s): 37b0b26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -106,9 +106,9 @@ async def on_thread_create(thread):
106
 
107
  def post_to_slack_forum_version(message, channel, text, author, thread_ts=None):
108
  if message.attachments:
109
- for attachment in message.attachments:
110
- attachment_url = attachment.url
111
- text += f"\nAttachment: {attachment_url}"
112
  text = f"{author}" + ": " + text
113
  try:
114
  response = slack_client.chat_postMessage(
 
106
 
107
  def post_to_slack_forum_version(message, channel, text, author, thread_ts=None):
108
  if message.attachments:
109
+ for attachment in message.attachments:
110
+ attachment_url = attachment.url
111
+ text += f"\nAttachment: {attachment_url}"
112
  text = f"{author}" + ": " + text
113
  try:
114
  response = slack_client.chat_postMessage(