Merge pull request #1338 from bookwyrm-social/default-ap-value

Use None instead of empty string for activitypub null value
This commit is contained in:
Mouse Reeve
2021-08-28 13:53:04 -07:00
committed by GitHub

View File

@ -30,8 +30,8 @@ class Note(ActivityObject):
to: List[str] = field(default_factory=lambda: [])
cc: List[str] = field(default_factory=lambda: [])
replies: Dict = field(default_factory=lambda: {})
inReplyTo: str = ""
summary: str = ""
inReplyTo: str = None
summary: str = None
tag: List[Link] = field(default_factory=lambda: [])
attachment: List[Document] = field(default_factory=lambda: [])
sensitive: bool = False