module.exports = function post (options) {
  var seneca = this

  seneca.add('student:entry', function(msg, done) {
    var entry = this.util.clean(msg)
    delete entry.post

    entry.when = Date.now()

    this.act('store:save,kind:entry', entry, function(err,entry) {
	done(err)

      if( !err ) {
        this.act('info:entry',entry.data$())
      }
    })
  })
}
