Fixes where User id in API would return url rather than host

This commit is contained in:
Jessica Tallon
2013-08-14 18:32:27 +01:00
committed by Jessica Tallon
parent a840d2a848
commit c8bd2542d7

View File

@@ -139,7 +139,7 @@ class User(Base, UserMixin):
def serialize(self, request):
user = {
"id": "acct:{0}@{1}".format(self.username, request.url),
"id": "acct:{0}@{1}".format(self.username, request.host),
"preferredUsername": self.username,
"displayName": "{0}@{1}".format(self.username, request.url),
"objectType": "person",