forked from mirrors/bookwyrm
c7883cd615
To get the app working again I ran resetdb, let it crash in initdb, then ran the migration, then re-ran initdb
22 lines
564 B
Python
22 lines
564 B
Python
''' actor serializer '''
|
|
from dataclasses import dataclass, field
|
|
from typing import Dict
|
|
|
|
from .base_activity import ActivityObject, Image, PublicKey
|
|
|
|
@dataclass(init=False)
|
|
class Person(ActivityObject):
|
|
''' actor activitypub json '''
|
|
preferredUsername: str
|
|
name: str
|
|
inbox: str
|
|
outbox: str
|
|
followers: str
|
|
summary: str
|
|
publicKey: PublicKey
|
|
endpoints: Dict
|
|
icon: Image = field(default=lambda: {})
|
|
bookwyrmUser: str = False
|
|
manuallyApprovesFollowers: str = False
|
|
discoverable: str = True
|
|
type: str = 'Person'
|