message: Fix for issue prune empty button arrays off of facebook carousel attachments
diff: @@ -402,6 +402,15 @@ module.exports = function(controller) {
  // blank text, not allowed with attachment
  message.text = null;
  + // remove blank button array if specified
  + if (message.attachment.payload.elements) {
  + for (var e = 0; e < message.attachment.payload.elements.length; e++) {
  + if (!message.attachment.payload.elements[e].buttons || !message.attachment.payload.elements[e].buttons.length) {
  + delete(message.attachment.payload.elements[e].buttons);
  + }
  + }
  + }
  +
  }
  // handle Facebook quick replies
  