mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 03:21:05 +00:00
Corrects serialization of Add activity
This commit is contained in:
parent
65770b8dd4
commit
20395ff2ec
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ class ShelfBook(BookWyrmModel):
|
||||||
return activitypub.Add(
|
return activitypub.Add(
|
||||||
id='%s#add' % self.remote_id,
|
id='%s#add' % self.remote_id,
|
||||||
actor=user.remote_id,
|
actor=user.remote_id,
|
||||||
object=self.book.local_id,
|
object=self.book.to_activity(),
|
||||||
target=self.shelf.remote_id,
|
target=self.shelf.remote_id,
|
||||||
).serialize()
|
).serialize()
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Tag(OrderedCollectionMixin, BookWyrmModel):
|
||||||
return activitypub.Add(
|
return activitypub.Add(
|
||||||
id='%s#add' % self.remote_id,
|
id='%s#add' % self.remote_id,
|
||||||
actor=user.remote_id,
|
actor=user.remote_id,
|
||||||
object=self.book.local_id,
|
object=self.book.to_activity(),
|
||||||
target=self.remote_id,
|
target=self.remote_id,
|
||||||
).serialize()
|
).serialize()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue