From c8bd2542d7b8face6033884fccfb898be1d12989 Mon Sep 17 00:00:00 2001 From: Jessica Tallon Date: Wed, 14 Aug 2013 18:32:27 +0100 Subject: [PATCH] Fixes where User id in API would return url rather than host --- mediagoblin/db/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.25.1