|
parseMode=', "parse": "none"' |
In lines 594, 598, and 602, the leading comma in the parseMode string, when combined with the json builder (e.g., lines 318-320), creates json like ... "icon_emoji": ":wrench:", , "link_names": "1"}. The double comma causes an invalid_json error to be returned.
The simplest fix seems to be just dropping that comma in each of those three lines, instead making them parseMode='"parse":"none" and so on.
slacktee/slacktee.sh
Line 594 in 22e0189
In lines 594, 598, and 602, the leading comma in the
parseModestring, when combined with the json builder (e.g., lines 318-320), creates json like... "icon_emoji": ":wrench:", , "link_names": "1"}. The double comma causes aninvalid_jsonerror to be returned.The simplest fix seems to be just dropping that comma in each of those three lines, instead making them
parseMode='"parse":"none"and so on.