mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-01 22:11:16 +00:00
Fixes default lists on activitypub dataclasses
This commit is contained in:
parent
641ac22786
commit
9b57cfd331
4 changed files with 6 additions and 6 deletions
|
@ -25,7 +25,7 @@ class Book(ActivityObject):
|
||||||
librarything_key: str
|
librarything_key: str
|
||||||
goodreads_key: str
|
goodreads_key: str
|
||||||
|
|
||||||
attachment: List[Image] = field(default=lambda: [])
|
attachment: List[Image] = field(default_factory=lambda: [])
|
||||||
type: str = 'Book'
|
type: str = 'Book'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,8 @@ class Note(ActivityObject):
|
||||||
cc: List[str]
|
cc: List[str]
|
||||||
content: str
|
content: str
|
||||||
replies: Dict
|
replies: Dict
|
||||||
tag: List[Link] = field(default=lambda: [])
|
tag: List[Link] = field(default_factory=lambda: [])
|
||||||
attachment: List[Image] = field(default=lambda: [])
|
attachment: List[Image] = field(default_factory=lambda: [])
|
||||||
sensitive: bool = False
|
sensitive: bool = False
|
||||||
type: str = 'Note'
|
type: str = 'Note'
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ class Person(ActivityObject):
|
||||||
summary: str
|
summary: str
|
||||||
publicKey: PublicKey
|
publicKey: PublicKey
|
||||||
endpoints: Dict
|
endpoints: Dict
|
||||||
icon: Image = field(default=lambda: {})
|
icon: Image = field(default_factory=lambda: {})
|
||||||
bookwyrmUser: bool = False
|
bookwyrmUser: bool = False
|
||||||
manuallyApprovesFollowers: str = False
|
manuallyApprovesFollowers: str = False
|
||||||
discoverable: str = True
|
discoverable: str = True
|
||||||
|
|
Loading…
Reference in a new issue