Serialize lists as custom activitypub object

This commit is contained in:
Mouse Reeve
2021-02-02 11:05:47 -08:00
parent d37f8f68d8
commit e61d8b7638
7 changed files with 53 additions and 27 deletions

View File

@ -33,6 +33,7 @@ class List(OrderedCollectionMixin, BookWyrmModel):
through='ListItem',
through_fields=('book_list', 'book'),
)
activity_serializer = activitypub.BookList
def get_remote_id(self):
''' don't want the user to be in there in this case '''