aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorPásztor János <janos.pasztor@balabit.com>2019-02-11 12:44:53 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2019-02-15 00:10:29 +0100
commitc70d23c95d4e21be788721fa248b323497aa90c4 (patch)
tree9f95feb88b25dddb1a5004fadce32e221fe79da5 /wee_slack.py
parente1fb582f70a4698479fd894a64304dd4f721ea02 (diff)
downloadwee-slack-c70d23c95d4e21be788721fa248b323497aa90c4.tar.gz
Fix /slack linkarchive command because of an API change
* for details please see: https://api.slack.com/methods/chat.getPermalink
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index acdf713..e03719e 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -3746,7 +3746,7 @@ def command_linkarchive(data, current_buffer, args):
message_id = args
message = channel.hashed_messages.get(message_id)
if message:
- url += '{}{:0>6}'.format(message.ts.majorstr(), message.ts.minorstr())
+ url += 'p{}{:0>6}'.format(message.ts.majorstr(), message.ts.minorstr())
if isinstance(message, SlackThreadMessage):
url += "?thread_ts={}&cid={}".format(message.parent_message.ts, channel.identifier)
else: