Fix profile FQN for remote profiles without a domain #76

Merged
gergely merged 1 commits from profile-fqn-fix into master 2018-07-12 10:19:05 +02:00

View File

@ -265,7 +265,7 @@ class Profile(db.Model): # pylint: disable=too-few-public-methods
domain = ''
else:
username = self.username
domain = '@' + self.domain
domain = f'@{self.domain}'
return f'<Profile {self.id}(@{username}{domain})>'