lib/services/publish.js
function addToMeta(meta, modifiers = [], uri, data) {
  if (!modifiers.length) return meta;

  return bluebird.reduce(modifiers, (acc, modify) => {
    return bluebird.try(modify.bind(null, uri, data, acc))
      .then(resp => Object.assign(acc, resp));
  }, {}).then(acc => Object.assign(acc, meta));
}
function addToMeta(meta, modifiers = [], uri, data) {
  if (!modifiers.length) return meta;

  return bluebird.reduce(modifiers, (acc, modify) => {
    return bluebird.try(modify.bind(null, uri, data, acc))
      .then(resp => Object.assign(acc, resp));
  }, {}).then(acc => Object.assign(acc, meta));
}
function addToMeta ( meta , modifiers = [ ] , uri , data ) { if ( ! modifiers . length ) return meta ; return bluebird . reduce ( modifiers , ( acc , modify ) => { return bluebird . try ( modify . bind ( null , uri , data , acc ) ) . then ( resp => Object . assign ( acc , resp ) ) ; } , { } ) . then ( acc => Object . assign ( acc , meta ) ) ; }
Allow functions to add data to the meta object.
Functions are defined on the site controller and
can be synchronous or async.

@param {Object} meta
@param {Array} modifiers
@param {String} uri
@param {Object} data
@returns {Promise}
Allow functions to add data to the meta object . Functions are defined on the site controller and can be synchronous or async .