From 582ebc0fe3ab61b650807747124f8de02e1e9644 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 4 Feb 2021 10:31:08 -0800 Subject: [PATCH] Fixes local paths with remote users Fixes #590 --- bookwyrm/models/base_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/models/base_model.py b/bookwyrm/models/base_model.py index ba0a54be2..823721285 100644 --- a/bookwyrm/models/base_model.py +++ b/bookwyrm/models/base_model.py @@ -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)