'Return photo url.
If privacy allows and no photo set, return gravatar link.
If privacy allows and photo set return local photo link.
If privacy doesn\'t allow return default local link.'

def get_photo_url(self, geometry='160x160', **kwargs):

    privacy_level = getattr(self, '_privacy_level', MOZILLIANS)
    if ((not self.photo) and (self.privacy_photo >= privacy_level)):
        return gravatar(self.user.email, size=geometry)
    photo_url = self.get_photo_thumbnail(geometry, **kwargs).url
    if (photo_url.startswith('https://') or photo_url.startswith('http://')):
        return photo_url
    return absolutify(photo_url)
