check gravatar_id to avoid bad url
double check repository is set in afterModel for linkTo