Skip to content

Commit

Permalink
replace # with nothing in chat.postMessage (#433)
Browse files Browse the repository at this point in the history
fixes #340
  • Loading branch information
jetersen authored and timja committed Dec 4, 2018
1 parent c13593f commit 2fd562f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public boolean publish(JSONArray attachments, String color) {
nvps.add(new BasicNameValuePair("payload", json.toString()));
} else {
url = "https://slack.com/api/chat.postMessage?token=" + getTokenToUse() +
"&channel=" + roomId +
"&channel=" + roomId.replace("#", "") +
"&link_names=1" +
"&as_user=true";
if (threadTs.length() > 1) {
Expand Down

0 comments on commit 2fd562f

Please sign in to comment.