Fixes bugs in how lists/shelves federate Adds

This commit is contained in:
Mouse Reeve
2021-02-10 19:17:01 -08:00
parent bf941f1507
commit 5f7466e92d
5 changed files with 33 additions and 6 deletions

View File

@ -68,7 +68,7 @@ class ListItem(CollectionItemMixin, BookWyrmModel):
order = fields.IntegerField(blank=True, null=True)
endorsement = models.ManyToManyField('User', related_name='endorsers')
activity_serializer = activitypub.AddBook
activity_serializer = activitypub.AddListItem
object_field = 'book'
collection_field = 'book_list'