kopia lustrzana https://github.com/tsileo/little-boxes
Add Page support
rodzic
0575e7e688
commit
aa66280bb6
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue