gotta simplify the add activity

This commit is contained in:
Mouse Reeve
2021-02-23 15:51:02 -08:00
parent cbccdea468
commit 6e6bcb2f48
4 changed files with 80 additions and 10 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.AddListItem
activity_serializer = activitypub.Add
object_field = 'book'
collection_field = 'book_list'