mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-23 18:11:09 +00:00
parent
ae0034e678
commit
582ebc0fe3
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class BookWyrmModel(models.Model):
|
|||
''' generate a url that resolves to the local object '''
|
||||
base_path = 'https://%s' % DOMAIN
|
||||
if hasattr(self, 'user'):
|
||||
base_path = self.user.remote_id
|
||||
base_path = self.user.local_path
|
||||
model_name = type(self).__name__.lower()
|
||||
return '%s/%s/%d' % (base_path, model_name, self.id)
|
||||
|
||||
|
|
Loading…
Reference in a new issue