Email or username:

Password:

Forgot your password?
1 comment
greeeeen :blobcatpresentgreen: (christmas edition)

@theresnotime@fox.nexus nothing a little code copy pasting can't fix

if [ -z "$cw" ]; then
  json_data="$(
    jq -n --arg msg "$msg" --arg visibility "$visibility" \
    '{"text": $msg, "visibility": $visibility}'
  )"
else
  json_data="$(
    jq -n --arg msg "$msg" --arg cw "$cw" --arg visibility "$visibility" \
    '{"text": $msg, "cw": $cw, "visibility": $visibility}'
  )"
fi

Go Up