mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-27 12:29:41 +02:00
Fix slack link bug with non-thread messages
This commit is contained in:
@@ -29,9 +29,7 @@ def get_message_link(
|
|||||||
thread_ts = cast(str | None, event.get("thread_ts"))
|
thread_ts = cast(str | None, event.get("thread_ts"))
|
||||||
return (
|
return (
|
||||||
f"https://{workspace}.slack.com/archives/{channel_id}/p{message_ts_without_dot}"
|
f"https://{workspace}.slack.com/archives/{channel_id}/p{message_ts_without_dot}"
|
||||||
f"?thread_ts={thread_ts}"
|
+ (f"?thread_ts={thread_ts}" if thread_ts else "")
|
||||||
if thread_ts
|
|
||||||
else ""
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user