Fixes problem where full URL was being used inplace of host
authorxray7224 <jessica@megworld.co.uk>
Mon, 2 Sep 2013 15:23:40 +0000 (16:23 +0100)
committerJessica Tallon <jessica@megworld.co.uk>
Tue, 22 Jul 2014 22:13:14 +0000 (23:13 +0100)
mediagoblin/db/models.py

index ca4efdd17627579333753399293054fa82db39ff..91efc0b649140014060bfb4a2da20c8ad55ce0d4 100644 (file)
@@ -141,7 +141,7 @@ class User(Base, UserMixin):
         user = {
             "id": "acct:{0}@{1}".format(self.username, request.host),
             "preferredUsername": self.username,
-            "displayName": "{0}@{1}".format(self.username, request.url),
+            "displayName": "{0}@{1}".format(self.username, request.host),
             "objectType": "person",
             "url": self.url,
             "summary": self.bio,