mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-01 22:11:16 +00:00
fix group local_path
as per Lists, we need to override get_remote_id to remove the user from the URL
This commit is contained in:
parent
52a083a907
commit
832a9b9890
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue