Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
| 110 |
-
|
| 111 |
-
|
| 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(
|