diff --git a/bookwyrm/models/shelf.py b/bookwyrm/models/shelf.py index 24f1fdce..cd82198c 100644 --- a/bookwyrm/models/shelf.py +++ b/bookwyrm/models/shelf.py @@ -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() diff --git a/bookwyrm/models/tag.py b/bookwyrm/models/tag.py index 510ad13b..cd98e2b1 100644 --- a/bookwyrm/models/tag.py +++ b/bookwyrm/models/tag.py @@ -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()