lib: emit 'update' event on new posts