def get_post(post_id):
    """Returns a post. Simple helper function

    """
    post = m.db.posts.find_one({'_id': post_id})
    # Attach in the e-mail (will be removed with image uploads)

    if post is not None:
        user = m.db.users.find_one({'_id': post.get('user_id')},
                                   {'avatar': True, 'donated': True})
        if user is not None:
            post['user_avatar'] = user.get('avatar')
            post['user_donated'] = user.get('donated', False)

    return post