aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/models.py
diff options
context:
space:
mode:
authorxray7224 <jessica@megworld.co.uk>2013-09-02 16:23:40 +0100
committerJessica Tallon <jessica@megworld.co.uk>2014-07-22 23:13:14 +0100
commit37f070b06786c20f320231bc467b35ccab6270dc (patch)
treef6dfb13160c7d09871a1e4a73349fda69b9a0df2 /mediagoblin/db/models.py
parentd461fbe5cb20ed56c3c1e3696464c3d323e5b4b0 (diff)
downloadmediagoblin-37f070b06786c20f320231bc467b35ccab6270dc.tar.lz
mediagoblin-37f070b06786c20f320231bc467b35ccab6270dc.tar.xz
mediagoblin-37f070b06786c20f320231bc467b35ccab6270dc.zip
Fixes problem where full URL was being used inplace of host
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r--mediagoblin/db/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py
index ca4efdd1..91efc0b6 100644
--- a/mediagoblin/db/models.py
+++ b/mediagoblin/db/models.py
@@ -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,