Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Auri
funkwhale
Commits
af53ee7c
Verified
Commit
af53ee7c
authored
Dec 05, 2018
by
Eliot Berriot
Browse files
Ensure all our AP types are present
parent
7ac3bb98
Changes
1
Hide whitespace changes
Inline
Side-by-side
api/funkwhale_api/federation/activity.py
View file @
af53ee7c
...
...
@@ -42,23 +42,39 @@ ACTIVITY_TYPES = [
"View"
,
]
OBJECT_TYPES
=
[
"Article"
,
"Audio"
,
"Collection"
,
"Document"
,
"Event"
,
"Image"
,
"Note"
,
"OrderedCollection"
,
"Page"
,
"Place"
,
"Profile"
,
"Relationship"
,
"Tombstone"
,
"Video"
,
]
+
ACTIVITY_TYPES
FUNKWHALE_OBJECT_TYPES
=
[
(
"Domain"
,
"Domain"
),
(
"Artist"
,
"Artist"
),
(
"Album"
,
"Album"
),
(
"Track"
,
"Track"
),
(
"Library"
,
"Library"
),
]
OBJECT_TYPES
=
(
[
"Application"
,
"Article"
,
"Audio"
,
"Collection"
,
"Document"
,
"Event"
,
"Group"
,
"Image"
,
"Note"
,
"Object"
,
"OrderedCollection"
,
"Organization"
,
"Page"
,
"Person"
,
"Place"
,
"Profile"
,
"Relationship"
,
"Service"
,
"Tombstone"
,
"Video"
,
]
+
ACTIVITY_TYPES
+
FUNKWHALE_OBJECT_TYPES
)
BROADCAST_TO_USER_ACTIVITIES
=
[
"Follow"
,
"Accept"
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment