From 832a9b9890a69095a7e521d69159c9ab7a4b6224 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sat, 2 Oct 2021 16:54:44 +1000 Subject: [PATCH] fix group local_path as per Lists, we need to override get_remote_id to remove the user from the URL --- bookwyrm/models/group.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bookwyrm/models/group.py b/bookwyrm/models/group.py index 2d60ae2d..3e76a6b7 100644 --- a/bookwyrm/models/group.py +++ b/bookwyrm/models/group.py @@ -17,6 +17,10 @@ class Group(BookWyrmModel): description = fields.TextField(blank=True, null=True) privacy = fields.PrivacyField() + def get_remote_id(self): + """don't want the user to be in there in this case""" + return f"https://{DOMAIN}/group/{self.id}" + class GroupMember(models.Model): """Users who are members of a group""" created_date = models.DateTimeField(auto_now_add=True)