mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-04 06:18:49 +00:00
Fixes article serialization mappings in review
This commit is contained in:
parent
a2b3a79181
commit
8b972a577e
1 changed files with 3 additions and 1 deletions
|
@ -78,7 +78,7 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
|
||||||
|
|
||||||
# for serializing to standard activitypub without extended types
|
# for serializing to standard activitypub without extended types
|
||||||
pure_activity_mappings = shared_mappings + [
|
pure_activity_mappings = shared_mappings + [
|
||||||
ActivityMapping('name', 'pure_ap_name'),
|
ActivityMapping('name', 'ap_pure_name'),
|
||||||
ActivityMapping('content', 'ap_pure_content'),
|
ActivityMapping('content', 'ap_pure_content'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -145,6 +145,7 @@ class Quotation(Status):
|
||||||
)
|
)
|
||||||
|
|
||||||
activity_serializer = activitypub.Quotation
|
activity_serializer = activitypub.Quotation
|
||||||
|
pure_activity_serializer = activitypub.Note
|
||||||
|
|
||||||
|
|
||||||
class Review(Status):
|
class Review(Status):
|
||||||
|
@ -174,6 +175,7 @@ class Review(Status):
|
||||||
(self.book.local_id, self.book.title)
|
(self.book.local_id, self.book.title)
|
||||||
|
|
||||||
activity_serializer = activitypub.Review
|
activity_serializer = activitypub.Review
|
||||||
|
pure_activity_serializer = activitypub.Article
|
||||||
|
|
||||||
|
|
||||||
class Favorite(ActivitypubMixin, BookWyrmModel):
|
class Favorite(ActivitypubMixin, BookWyrmModel):
|
||||||
|
|
Loading…
Reference in a new issue