diff options
author | Jessica Tallon <xray7224@googlemail.com> | 2013-08-14 18:32:27 +0100 |
---|---|---|
committer | Jessica Tallon <jessica@megworld.co.uk> | 2014-07-22 23:13:14 +0100 |
commit | c8bd2542d7b8face6033884fccfb898be1d12989 (patch) | |
tree | 490aae2c1f91023b1fd8634053522860841e5e16 | |
parent | a840d2a848743fe36fc800557de7bb7a6e693b57 (diff) | |
download | mediagoblin-c8bd2542d7b8face6033884fccfb898be1d12989.tar.lz mediagoblin-c8bd2542d7b8face6033884fccfb898be1d12989.tar.xz mediagoblin-c8bd2542d7b8face6033884fccfb898be1d12989.zip |
Fixes where User id in API would return url rather than host
-rw-r--r-- | mediagoblin/db/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index 6d6b2032..281c09d9 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -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", |