made gravatar work for both types of posts