def webfinger(self, resource):
    return {'subject': resource, 'aliases': [self.user.alias, self.user.uri], 'links': [{'rel': 'self', 'type': 'application/activity+json', 'href': self.user.uri}]}
def webfinger(self, resource):
    return {'subject': resource, 'aliases': [self.user.alias, self.user.uri], 'links': [{'rel': 'self', 'type': 'application/activity+json', 'href': self.user.uri}]}