Adds status type for app-generated statuses

This commit is contained in:
Mouse Reeve
2020-09-28 17:26:15 -07:00
parent 10d18cc633
commit 39931e2e69
6 changed files with 47 additions and 11 deletions

View File

@ -3,7 +3,7 @@ import inspect
import sys
from .base_activity import ActivityEncoder, Image, PublicKey, Signature
from .note import Note, Article, Comment, Review, Quotation
from .note import Note, GeneratedNote, Article, Comment, Review, Quotation
from .interaction import Boost, Like
from .ordered_collection import OrderedCollection, OrderedCollectionPage
from .person import Person

View File

@ -28,6 +28,12 @@ class Article(Note):
type: str = 'Article'
@dataclass(init=False)
class GeneratedNote(Note):
''' just a re-typed note '''
type: str = 'NoteUpdate'
@dataclass(init=False)
class Comment(Note):
''' like a note but with a book '''