Fixes bug in remote user absolute_id generator
This commit is contained in:
parent
787aa4691d
commit
67661274a6
3 changed files with 7 additions and 6 deletions
|
@ -56,7 +56,8 @@ class User(AbstractUser):
|
|||
def absolute_id(self):
|
||||
''' users are identified by their username, so overriding this prop '''
|
||||
model_name = type(self).__name__.lower()
|
||||
return 'https://%s/%s/%s' % (DOMAIN, model_name, self.localname)
|
||||
username = self.localname or self.username
|
||||
return 'https://%s/%s/%s' % (DOMAIN, model_name, username)
|
||||
|
||||
|
||||
class UserRelationship(FedireadsModel):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue