deletePost = async options => {
  let { post_id, when, dispatch, redirect } = options

  wait()

  let {
    data: { success, mssg },
  } = await post('/api/delete-post', { post: post_id })

  if (success) {
    dispatch(PostActions.deletePost(post_id))
    when == 'viewPost' ? redirect() : null
  }

  Notify({ value: mssg })
}
Deletes a post
@param {Object} options
@param {Number} options.post_id
@param {String} options.when
@param {Function} options.dispatch
@param {Function} options.redirect