Corrects serialization of Add activity

This commit is contained in:
Mouse Reeve 2020-11-07 16:11:12 -08:00
parent 65770b8dd4
commit 20395ff2ec
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ class ShelfBook(BookWyrmModel):
return activitypub.Add(
id='%s#add' % self.remote_id,
actor=user.remote_id,
object=self.book.local_id,
object=self.book.to_activity(),
target=self.shelf.remote_id,
).serialize()

View file

@ -35,7 +35,7 @@ class Tag(OrderedCollectionMixin, BookWyrmModel):
return activitypub.Add(
id='%s#add' % self.remote_id,
actor=user.remote_id,
object=self.book.local_id,
object=self.book.to_activity(),
target=self.remote_id,
).serialize()