Add Page support

master
Thomas Sileo 2019-04-19 00:30:16 +02:00
rodzic 0575e7e688
commit aa66280bb6
1 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -124,6 +124,9 @@ class ActivityType(Enum):
# Mastodon specific?
QUESTION = "Question"
# Used by Prismo
PAGE = "Page"
ACTOR_TYPES = [
ActivityType.PERSON,
@ -141,6 +144,7 @@ CREATE_TYPES = [
ActivityType.AUDIO,
ActivityType.QUESTION,
ActivityType.DOCUMENT,
ActivityType.PAGE,
]
COLLECTION_TYPES = [ActivityType.COLLECTION, ActivityType.ORDERED_COLLECTION]
@ -947,6 +951,12 @@ class Article(Note):
OBJECT_REQURIED = False
class Page(Note):
ACTIVITY_TYPE = ActivityType.PAGE
ACTOR_REQUIRED = True
OBJECT_REQURIED = False
class Video(Note):
ACTIVITY_TYPE = ActivityType.VIDEO
ACTOR_REQUIRED = True