export function fetchUser(username) {
  return dispatch => {
    dispatch(requestUser())
    request
      .get(`${api.user}/${username}`)