From 79b36bcf400a4031b1829195e9e4f3d3b315b818 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Mon, 17 Jun 2019 21:33:24 +0100 Subject: [PATCH] Fix threading (#585) --- src/main/java/jenkins/plugins/slack/StandardSlackService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/jenkins/plugins/slack/StandardSlackService.java b/src/main/java/jenkins/plugins/slack/StandardSlackService.java index 8f58b939..3974c33d 100755 --- a/src/main/java/jenkins/plugins/slack/StandardSlackService.java +++ b/src/main/java/jenkins/plugins/slack/StandardSlackService.java @@ -180,7 +180,7 @@ public boolean publish(String message, JSONArray attachments, String color) { post.setHeader("Authorization", "Bearer " + populatedToken); post.setHeader("Content-type", "application/json"); if (threadTs.length() > 1) { - json.put("thread_ts", "threadTs"); + json.put("thread_ts", threadTs); } if (replyBroadcast) { json.put("reply_broadcast", "true");